Part Number Hot Search : 
T7001030 IRL1404Z MFWPSS 4608M LC33832P AT207 UAF110RA AD669AN
Product Description
Full Text Search
 

To Download DS2155GNC2 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 of 238 rev: 080607 note: some revisions of this device may incor porate deviations from published specifications known as erra ta. multiple revisions of any device ma y be simultaneousl y available throu g h various sales channels. for informat ion about device errata, click here: www.maxim - ic.com/errata. general description the ds2155 is a software-selectable t1, e1, or j1 single-chip transceiver (sct) for short-haul and long-haul applications. th e ds2155 is composed of a line interface unit (liu), framer, hdlc controllers, and a tdm backplane interface, and is controlled by an 8-bit parallel port configured for intel or motorola bus operations. the ds2155 is pin and software compatible with the ds2156. the liu is composed of transmit and receive interfaces and a jitter attenuator. the transmit interface is responsible for generating the necessary waveshapes for driving the network and providing the correct source impedance depending on the type of media used. t1 waveform generation includes dsx-1 line buildouts as well as csu line buildouts of -7.5db, -15db, and -22.5db. e1 waveform generation includes g.703 waveshapes for both 75 ? coax and 120 ? twisted cables. the receive interface provides network terminati on and recovers clock and data from the network. applications t1/e1/j1 line cards switches and routers add-drop multiplexers features complete t1/ds1/isdn-pri/j1 transceiver functionality complete e1 (cept) pcm-30/isdn-pri transceiver functionality long-haul and short-haul line interface for clock/data recovery and waveshaping cmi coder/decoder for optical i/f crystal-less jitter attenuator fully independent transmit and receive functionality dual hdlc controllers programmable bert generator and detector internal software-selectable receive and transmit-side termination resistors for 75 ? /100 ? /120 ? t1 and e1 interfaces dual two-frame elastic-store slip buffers that connect to asynchronous backplanes up to 16.384mhz 16.384mhz, 8.192mhz, 4.096mhz, or 2.048mhz clock output synthesized to recovered network clock features continued in section 3 . ordering information part temp range pin-package ds2155l 0c to +70c 100 lqfp ds2155l+ 0c to +70c 100 lqfp ds2155ln -40c to +85c 100 lqfp ds2155ln+ -40c to +85c 100 lqfp ds2155g 0c to +70c 100 csbga ds2155g+ 0c to +70c 100 csbga ds2155gn -40c to +85c 100 csbga ds2155gn -40c to +85c 100 csbga + denotes a lead-free/rohs-compliant package. ds2155 t1/e1/j1 single-chip transceive r www.maxim-ic.com ds2155 t1/e1/j1 sct t1/e1/j1 network backplane tdm downloaded from: http:///
ds2155 2 of 238 1. table of contents 1. table of contents .............................................................................................................. ..............2 1.1 t able of f igures ........................................................................................................................................6 1.2 t able of t ables ..........................................................................................................................................7 2. data sheet revision history .................................................................................................... .8 3. main features.................................................................................................................. ..................10 3.1 f unctional d escription .........................................................................................................................13 3.2 b lock d iagram ............................................................................................................................... ..........15 4. pin function description ....................................................................................................... ....19 4.1 t ransmit s ide ............................................................................................................................... ............19 4.2 r eceive s ide ............................................................................................................................... ...............21 4.3 p arallel c ontrol p ort p ins .................................................................................................................24 4.4 e xtended s ystem i nformation b us ......................................................................................................25 4.5 u ser o utput p ort p ins ............................................................................................................................26 4.6 jtag t est a ccess p ort p ins ...................................................................................................................27 4.7 l ine i nterface p ins ............................................................................................................................... ...28 4.8 s upply p ins ............................................................................................................................... .................29 4.9 l and g p ackage p inout .........................................................................................................................30 4.10 10 mm csbga p in c onfiguration ......................................................................................................32 5. parallel port .................................................................................................................. .................33 5.1 r egister m ap ............................................................................................................................... .............33 6. programming model.............................................................................................................. .......39 6.1 p ower -u p s equence ............................................................................................................................... ..40 6.1.1 master mode register........................................................................................................... ..............40 6.2 i nterrupt h andling ............................................................................................................................... .41 6.3 s tatus r egisters ............................................................................................................................... .......41 6.4 i nformation r egisters ...........................................................................................................................42 6.5 i nterrupt i nformation r egisters ........................................................................................................42 7. special per-channel re gister operation.......................................................................43 8. clock map ...................................................................................................................... ......................45 9. t1 framer/formatter control and status registers............................................46 9.1 t1 c ontrol r egisters .............................................................................................................................46 9.2 t1 t ransmit t ransparency ...................................................................................................................51 9.3 ais-ci and rai-ci g eneration and d etection ..................................................................................51 9.4 t1 r eceive -s ide d igital -m illiwatt c ode g eneration .....................................................................52 10. e1 framer/formatter control and status registers............................................55 10.1 e1 c ontrol r egisters .........................................................................................................................55 10.2 a utomatic a larm g eneration .........................................................................................................59 10.3 e1 i nformation r egisters ..................................................................................................................60 11. common control and st atus registers ..........................................................................62 11.1 t1/e1 s tatus r egisters ......................................................................................................................63 downloaded from: http:///
ds2155 3 of 238 12. i/o pin configuration options.................................................................................................6 9 13. loopback configuration ......................................................................................................... .71 13.1 p er -c hannel l oopback ......................................................................................................................73 14. error count registers .......................................................................................................... .....75 14.1 l ine -c ode v iolation c ount r egister (lcvcr).............................................................................76 14.1.1 t1 operation................................................................................................................... ....................76 14.1.2 e1 operation................................................................................................................... ....................76 14.2 p ath c ode v iolation c ount r egister (pcvcr) ............................................................................78 14.2.1 t1 operation................................................................................................................... ....................78 14.2.2 e1 operation................................................................................................................... ....................78 14.3 f rames o ut - of -s ync c ount r egister (foscr)..............................................................................79 14.3.1 t1 operation................................................................................................................... ....................79 14.3.2 e1 operation................................................................................................................... ....................79 14.4 e-b it c ounter (ebcr)......................................................................................................................... 80 15. ds0 monitoring function ........................................................................................................ ...81 16. signaling operation ............................................................................................................ .........83 16.1 r eceive s ignaling ............................................................................................................................... 83 16.1.1 processor-based signaling...................................................................................................... ...........83 16.1.2 hardware-based receive signaling ............................................................................................... ....84 16.2 t ransmit s ignaling .............................................................................................................................89 16.2.1 processor-based mode ........................................................................................................... ............89 16.2.2 software signaling insertion-enable registers, e1 cas mode..........................................................93 16.2.3 software signaling insertion-enable registers, t1 mode..................................................................95 16.2.4 hardware-based mode............................................................................................................ ...........95 17. per-channel idle code generation ....................................................................................96 17.1 i dle -c ode p rogramming e xamples ..................................................................................................97 18. channel blocking registers ................................................................................................101 19. elastic stores operation....................................................................................................... .104 19.1 r eceive s ide ............................................................................................................................... .........107 19.1.1 t1 mode ........................................................................................................................ ....................107 19.1.2 e1 mode........................................................................................................................ ....................107 19.2 t ransmit s ide ............................................................................................................................... ......107 19.2.1 t1 mode ........................................................................................................................ ....................108 19.2.2 e1 mode........................................................................................................................ ....................108 19.3 e lastic s tores i nitialization .........................................................................................................108 19.4 m inimum d elay m ode .......................................................................................................................108 20. g.706 intermediate crc-4 upda ting (e1 mode only) ...................................................109 21. t1 bit-oriented code (boc) controller..........................................................................110 21.1 t ransmit boc............................................................................................................................ .........110 transmit a boc ................................................................................................................. .............................110 21.2 r eceive boc ............................................................................................................................ ...........110 receive a boc.................................................................................................................. ...............................110 22. additional (sa) and international (si) bit operation (e1 only) ......................113 downloaded from: http:///
ds2155 4 of 238 22.1 m ethod 1: h ardware s cheme .........................................................................................................113 22.2 m ethod 2: i nternal r egister s cheme b ased on d ouble -f rame ..............................................113 22.3 m ethod 3: i nternal r egister s cheme b ased on crc4 m ultiframe ........................................116 23. hdlc controllers ............................................................................................................... .........126 23.1 b asic o peration d etails ..................................................................................................................126 23.2 hdlc c onfiguration ........................................................................................................................126 23.2.1 fifo control................................................................................................................... .................130 23.3 hdlc m apping ............................................................................................................................... .....131 23.3.1 receive ........................................................................................................................ ......................131 23.3.2 transmit ....................................................................................................................... .....................133 23.3.3 fifo information ............................................................................................................... ..............138 23.3.4 receive packet-bytes available................................................................................................. .......138 23.3.5 hdlc fifos ..................................................................................................................... ...............139 23.4 r eceive hdlc c ode e xample ..........................................................................................................140 23.5 l egacy fdl s upport (t1 m ode )......................................................................................................140 23.5.1 overview ....................................................................................................................... ....................140 23.5.2 receive section ................................................................................................................ .................140 23.5.3 transmit section ............................................................................................................... ................142 23.6 d4/slc-96 o peration ........................................................................................................................142 24. line interface unit (liu) ...................................................................................................... .....143 24.1 liu o peration ............................................................................................................................... .....143 24.2 r eceiver ............................................................................................................................... ...............143 24.2.1 receive level indicator and threshold interrupt .............................................................................144 24.2.2 receive g.703 synchronizati on signal (e1 mode)...........................................................................144 24.2.3 monitor mode ................................................................................................................... ................144 24.3 t ransmitter ............................................................................................................................... ........145 24.3.1 transmit short-circuit detector/limiter ........................................................................................ ..145 24.3.2 transmit open-circuit detector................................................................................................. ......145 24.3.3 transmit bpv error insertion ................................................................................................... .......145 24.3.4 transmit g.703 synchroniza tion signal (e1 mode).........................................................................145 24.4 mclk p rescaler ............................................................................................................................... 146 24.5 j itter a ttenuator .............................................................................................................................14 6 24.6 cmi (c ode m ark i nversion ) o ption ...............................................................................................146 24.7 liu c ontrol r egisters .....................................................................................................................147 24.8 r ecommended c ircuits .....................................................................................................................156 24.9 c omponent s pecifications ...............................................................................................................158 25. programmable in-band loop code generation and detection......................163 26. bert function .................................................................................................................. ................170 26.1 s tatus ............................................................................................................................... ...................170 26.2 m apping ............................................................................................................................... ................170 26.3 bert r egister d escriptions ...........................................................................................................172 26.4 bert r epetitive p attern s et ..........................................................................................................176 26.5 bert b it c ounter .............................................................................................................................17 7 26.6 bert e rror c ounter ........................................................................................................................178 27. payload error-insertion f unction (t1 mode only)................................................180 27.1 n umber - of -e rrors r egisters ..........................................................................................................182 27.1.1 number-of-errors left register................................................................................................. .......183 28. interleaved pcm bus operation (ibo) ...............................................................................184 downloaded from: http:///
ds2155 5 of 238 28.1 c hannel i nterleave .........................................................................................................................184 28.2 f rame i nterleave ..............................................................................................................................1 84 29. extended system information bus (esib) .......................................................................187 30. programmable backplane clock synthesizer ........................................................191 31. fractional t1/e1 support ....................................................................................................... ..191 32. user-programmable output pins........................................................................................193 33. transmit flow diagrams ......................................................................................................... 194 34. jtag boundary scan architecture and test access port .................................199 34.1 d escription ............................................................................................................................... ..........199 34.2 i nstruction r egister ........................................................................................................................202 34.3 t est r egisters ............................................................................................................................... .....204 34.4 b oundary s can r egister .................................................................................................................204 34.5 b ypass r egister ............................................................................................................................... ..204 34.6 i dentification r egister ....................................................................................................................204 35. functional timing diagrams.................................................................................................208 35.1 t1 m ode ............................................................................................................................... ................208 35.2 e1 m ode ............................................................................................................................... ................213 36. operating parameters ........................................................................................................... ...222 37. ac timing parameters and diagrams ...............................................................................224 37.1 m ultiplexed b us ac c haracteristics ..........................................................................................224 37.2 n onmultiplexed b us ac c haracteristics ...................................................................................227 37.3 r eceive -s ide ac c haracteristics ..................................................................................................230 37.4 b ackplane c lock t iming : ac c haracteristics .........................................................................233 37.5 t ransmit ac c haracteristics ........................................................................................................234 38. package information ............................................................................................................ ....237 38.1 100-p in lqfp ( 56-g5002-000 ) ............................................................................................................237 38.2 100-b all csbga ( 56-g6008-001 ) .....................................................................................................238 downloaded from: http:///
ds2155 6 of 238 1.1 table of figures figure 3-1. block diagram ...................................................................................................... .................................. 15 figure 3-2. receive and transmit liu........................................................................................... ........................... 16 figure 3-3. receive and transmit framer/hdlc ................................................................................... .................. 17 figure 3-4. backplane interface ................................................................................................ ................................ 18 figure 4-1. 10mm csbga pin configuration ....................................................................................... ................... 32 figure 6-1. programming sequence ............................................................................................... ........................... 39 figure 8-1. clock map.......................................................................................................... ..................................... 45 figure 16-1. simplified diagra m of receive signaling path ...................................................................... .............. 83 figure 16-2. simplified diagram of transmit signaling path..................................................................... .............. 89 figure 20-1. crc-4 recalculate method .......................................................................................... ...................... 109 figure 24-1. typical monitor application ....................................................................................... ....................... 144 figure 24-2. cmi coding ........................................................................................................ ................................ 146 figure 24-3. software-selected te rmination, metallic protection................................................................ .......... 156 figure 24-4. software-selected termination, longitudinal protection............................................................ ....... 157 figure 24-5. e1 transmit pulse template ........................................................................................ ....................... 159 figure 24-6. t1 transmit pulse template ........................................................................................ ....................... 159 figure 24-7. jitter tolerance.................................................................................................. .................................. 160 figure 24-8. jitter tolerance (e1 mode) ........................................................................................ ......................... 160 figure 24-9. jitter attenuation (t1 mode) ...................................................................................... ........................ 161 figure 24-10. jitter a ttenuation (e1 mode) ..................................................................................... ....................... 161 figure 24-11. optional crystal connections ..................................................................................... ...................... 162 figure 26-1. simplified diagram of bert in network direction ................................................................... ....... 171 figure 26-2. simplified diagram of bert in backplane direction ................................................................. ...... 171 figure 28-1. ibo example ....................................................................................................... ............................... 186 figure 29-1. esib group of four ds2155s ........................................................................................ .................... 187 figure 33-1. t1 transmit flow diagram .......................................................................................... ...................... 194 figure 33-2. e1 transmit flow diagram .......................................................................................... ...................... 195 figure 34-1. jtag functional block diagram ..................................................................................... .................. 199 figure 34-2. tap controller state diagram...................................................................................... ...................... 202 figure 35-1. receive-side d4 timing............................................................................................ ......................... 208 figure 35-2. receive-side esf timing........................................................................................... ........................ 208 figure 35-3. receive-side boundary timing (elastic store disabled)............................................................. ...... 209 figure 35-4. receive-side 1.544mhz bounda ry timing (elastic store enabled).................................................. 209 figure 35-5. receive-side 2.048mhz bounda ry timing (elastic store enabled).................................................. 210 figure 35-6. transmit-side d4 timing ........................................................................................... ........................ 210 figure 35-7. transmit-side esf timing .......................................................................................... ....................... 211 figure 35-8. transmit-side boundary timing (with elastic store disabled) ....................................................... .. 211 figure 35-9. transmit-side 1.544mhz boundary timing (elastic store enabled) ................................................ 212 figure 35-10. transmit-side 2.048mhz bounda ry timing (elastic store enabled) .............................................. 212 figure 35-11. receive-side timing .............................................................................................. .......................... 213 figure 35-12. receive-side boundary ti ming (with elastic store disabled)....................................................... .. 213 figure 35-13. receive-side boundary timing, rsysclk = 1.544mhz (elastic store enabled) ........................ 214 figure 35-14. receive-side boundary timing, rsysclk = 2.048mhz (elastic store enabled) ........................ 214 figure 35-15. receive ibo cha nnel interleave mode timing ....................................................................... ........ 215 figure 35-16. receive ibo fram e interleave mode timing......................................................................... .......... 216 figure 35-17. g.802 timing, e1 mode only ....................................................................................... ................... 217 figure 35-18. transmit-side timing............................................................................................. .......................... 217 figure 35-19. transmit-side boundary timing (elastic store disabled) ........................................................... .... 218 figure 35-20. transmit-side boundary timing, tsysc lk = 1.544mhz (elastic store enabled) ...................... 218 figure 35-21. transmit-side boundary timing, tsy sclk = 2.048mhz (elastic store enabled) ....................... 219 figure 35-22. transmit ibo channel interleave mode timing ...................................................................... ........ 220 downloaded from: http:///
ds2155 7 of 238 figure 35-23. transmit ibo frame interleave mode timing ........................................................................ ......... 221 figure 37-1. intel multiplexed bus read timing (bts = 0/mux = 1)............................................................... ... 225 figure 37-2. intel multiplexed bus write timing (bts = 0/mux = 1).............................................................. ... 225 figure 37-3. motorola multiplexed bus timing (bts = 1/mux = 1) ................................................................. .. 226 figure 37-4. intel nonmultiplexed bus read timing (bts = 0/mux = 0) ........................................................... 2 28 figure 37-5. intel nonmultiplexed bus write timing (bts = 0/mux = 0) .......................................................... 2 28 figure 37-6. motorola nonmultiplexed bus read timing (bts = 1/mux = 0).................................................... 229 figure 37-7. motorola nonmultiplexed bus write timing (bts = 1/mux = 0)................................................... 229 figure 37-8. receive-side timing ............................................................................................... ........................... 231 figure 37-9. receive-side timi ng, elastic store enabled ........................................................................ .............. 232 figure 37-10. receive li ne interface timing .................................................................................... ..................... 232 figure 37-11 receive timi ng delay rclk to bpclk............................................................................... .......... 233 figure 37-12. transmit-side timing............................................................................................. .......................... 235 figure 37-13. transmit-side timing, elastic store enabled...................................................................... ............. 236 figure 37-14. transmit li ne interface timing................................................................................... ..................... 236 1.2 table of tables table 4-a. pin description sorted by pin number ................................................................................ ................... 30 table 5-a. register ma p sorted by address...................................................................................... ....................... 33 table 9-a. t1 alarm criteria ................................................................................................... ................................. 54 table 10-a. e1 sync/resync criteria ............................................................................................ ........................... 56 table 10-b. e1 alarm criteria .................................................................................................. ................................ 61 table 14-a. t1 line code violation counting options ............................................................................ ............... 76 table 14-b. e1 line-code violation counting options ............................................................................ ............... 76 table 14-c. t1 path code violation counting arrangements....................................................................... ........... 78 table 14-d. t1 frames out-o f-sync counting arrangements ........................................................................ ......... 79 table 16-a. time slot numbering schemes........................................................................................ ..................... 90 table 17-a. idle-code array address mapping .................................................................................... ................... 96 table 17-b. gric and gtic functions............................................................................................ ........................ 98 table 19-a. elastic store delay after in itialization ........................................................................... .................... 108 table 23-a. hdlc controller registers.......................................................................................... ....................... 127 table 24-a. component list (software-sel ected termination, metallic protection)............................................. 156 table 24-b. component list (software-select ed termination, longitudinal protection)...................................... 157 table 24-c. transformer specifications......................................................................................... ......................... 158 table 27-a. transmit error-insertion setup sequence ............................................................................ ............... 180 table 27-b. error insertion examples........................................................................................... .......................... 182 table 34-a. instruction codes for ieee 1149.1 architecture ..................................................................... ........... 203 table 34-b. id code structure.................................................................................................. .............................. 204 table 34-c. device id codes.................................................................................................... .............................. 204 table 34-d. boundary scan control bits......................................................................................... ....................... 205 downloaded from: http:///
ds2155 8 of 238 2. data sheet revision history revision description 080607 in section 3: line interface and section 3.1: functional description , corrected db values for e1 and t1 (page 10 and page 13): e1: 0 to -43db and 0 to -12db t1: 0 to -15db and 0 to -36db 040907 added note 1 (gbd for cold temp) to absolute maximum ratings (section 36). 041806 replaced figure 24-3 and figure 24-4, added table 24-a and table 24-b. 011606 added lead-free packages to ordering information table on page 1. add revision history table: the previous version of the ds 2155 data sheet (12-06-02) did not incorporate a revision hist ory table and did not describe new features added to b1 revision of the ds2155. the following were inadvertently removed from the previous version of the ds2155 data sheet: add csbga package information to orde ring information table on front page add csbga package thermal characteristic s to operating parameters section add transmit line build out contro l register (tl bc) description add transmit line build out contro l register (tlbc) to port map add transmit line build out control regist er (tlbc) descript ion to liu transmit section the following are corrections to errors in the previous version of the ds2155 data sheet: correct device id in device identification register correct device id in jtag id code table correct minimum value for t dhw in ac characteristics: multiplexed parallel port table. t dhw was changed from 5ns to 0ns correct minimum value for t ddr in ac characteristics: multiplexed parallel port table. t ddr was changed from unstated to 20ns corrections to ac characteristic s: transmit side timing table. 1. t cp , t ch , t cl , t lp , t lh , t ll , and t sp typical values have been re stated to reflect various ibo modes. 2. t ch , t cl, t lh , t ll minimum values have been changed from 75ns to 20ns. 3. t sp , t ll minimum values have been changed from 50ns to 20ns. 4. t d3 minimum values have been changed from 75ns to 22ns. corrections to ac characteristic s: receive side timing table. 1. t cp , t ch , t cl , t lp , t lh , t ll , and t sp typical values have been re stated to reflect various ibo modes. 2. t ch , t cl, minimum values have been changed from 75ns to 20ns. 3. t sh , t sl minimum values have been changed from 50ns to 20ns. 4. t sh , t sl typical values have been added. 5. t d3, t d4 minimum values have been changed from 50ns to 22ns. 100903 correct transmit signaling registers (e1 mode , ccs format) table in transmit signaling section downloaded from: http:///
ds2155 9 of 238 revision description the definition of the egl bit in the lic1 regi ster has been corrected for both t1 and e1 mode. t1 mode: egl = 1 was changed from 15db to C15db e1 mode: egl = 0 was changed from C10db to C12db the following are format ch anges and added or removed text, tables or diagrams: replace x* format for showing active low signals with x remove redundant statements about multiport configurations in interrupt handling section remove basic network connections figure in line interface unit section add simplified diagram of bert in network direction figure to bert section add simplified diagram of bert in backplane directi on figure to bert section add receive signaling registers (e1 mode, ccs format) table to receive signaling section add gric and gtic function table to iaar register changed table of contents to include table of figures and table of tables. add note for fasrc bit. add t1 and e1 transmit flow chart. added rclk to bpclk timing diagram. the following are new feature s available on the ds2155 rev b1 and are explained in the body of the data sheet add fras0, tccs, rccs and grsre bits to signaling control register (sigcr) add section on ais-ci and ra i-ci generation and detection add rais-ci status bit to stat us register 4 (sr4) and interrupt mask register 4 (imr4) add rais-ci status bit to status register 4 (sr4) add trai-ci control bit to t1 common control register 1 (tccr1) add tais-ci control bit to t1 common control register 1 (tccr1) add pseudorandom 2e9-1 pattern to ps0, ps1 and ps2 bit descripti on in bert control register 1 (bcr1) add bd bit to information register 2 (info2) add ilut status bit to status register 1 (sr1) and interrupt mask register 1 (imr1) add intdis and tmss bits to common control register 3 (ccr3) downloaded from: http:///
ds2155 10 of 238 3. main features the ds2155 contains all of the features of the previous generation of dallas semiconducto rs t1 and e1 scts plus many new features. general programmable output clocks for fractional t1, e1, h0, and h12 applications interleaving pcm bus operation 8-bit parallel control port, multiplexed or nonmultiplexed, intel or motorola ieee 1149.1 jtag-boundary scan 3.3v supply with 5v tolerant inputs and outputs pin compatible with ds2156, ds2152/ds2154, and ds21x5y sct family signaling system 7 support rai-ci, ais-ci support 100-pin lqfp (14mm x 14mm) (ds2155l) 100-pin csbga (10mm x 10mm) (ds2155g) 3.3v supply with 5v tolerant inputs and outputs evaluation kits ieee 1149.1 jtag boundary scan driver source code available from the factory line interface requires only a 2.048mhz master clock for both e1 and t1 operation with the option to use 1.544mhz for t1 operation fully software configurable short-haul and long-haul applications automatic receive sensitivity adjustments ranges include 0 to -43db or 0 to -12db for e1 applications and 0 to -15db or 0 to -36db for t1 applications receive level indication in 2.5db steps from -42.5db to -2.5db internal receive term ination option for 75 ? , 100 ? , and 120 ? lines internal transmit termination option for 75 ? , 100 ? , and 120 ? lines monitor application gain settings of 20db, 26db, and 32db g.703 receive synchronization-signal mode flexible transmit waveform generation t1 dsx-1 line buildouts t1 csu line buildouts of -7.5db, -15db, and -22.5db e1 waveforms include g.703 waveshapes for both 75 ? coax and 120 ? twisted cables ais generation independent of loopbacks alternating ones and zeros generation square-wave output open-drain output option nrz format option transmitter power-down transmitter 50ma short-circuit limiter with current-limit-exceeded indication transmit open-circuit-detected indication line interface function can be completely decoupled from the framer/formatter clock synthesizer output frequencies include 2.048mhz, 4.096mhz, 8.192mhz, and 16.384mhz derived from recovered receive clock jitter attenuator 32-bit or 128-bit crystal-less jitter attenuator requires only a 2.048mhz master clock for both e1 and t1 operation with the option to use 1.544mhz for t1 operation can be placed in either the receive or transmit path or disabled limit trip indication framer/formatter fully independent transmit and receive functionality full receive and transmit path transparency t1 framing formats include d4 (slc-96) and esf detailed alarm and status reporting with optional interrupt support large path and line error counters for: C t1: bpv, cv, crc6, and framing bit errors C e1: bpv, cv, crc4, e-bit, and frame alignment errors timed or manual update modes ds1 idle code generation on a per-channel basis in both transmit and receive paths C user-defined C digital milliwatt ansi t1.403-1998 support rai-ci detection and generation ais-ci detection and generation e1ets 300 011 rai generation g.965 v5.2 link detect ability to monitor one ds0 channel in both the transmit and receive paths in-band repeating pattern generators and detectors C three independent generators and detectors C patterns from 1 to 8 bits or 16 bits in length rcl, rlos, rra, and rais alarms interrupt on change-of-state downloaded from: http:///
ds2155 11 of 238 flexible signaling support C software or ha rdware based C interrupt generated on change of signaling data C receive signaling freeze on loss-of-sync, carrier loss, or frame slip addition of hardware pins to indicate carrier loss and signaling freeze automatic rai generation to ets 300 011 specifications access to sa and si bits option to extend carrier loss criteria to a 1ms period as per ets 300 233 japanese j1 support C ability to calculate and check crc6 according to the japanese standard C ability to generate yellow alarm according to the japanese standard tdm bus dual two-frame independe nt receive and transmit elastic stores C independent control and clocking C controlled slip capability with status C minimum delay mode supported 16.384mhz maximum backplane burst rate supports t1 to cept (e1) conversion programmable output clocks for fractional t1, e1, h0, and h12 applications interleaving pcm bus operation hardware signaling capability C receive signaling reinsertion to a backplane multiframe sync C availability of signaling in a separate pcm data stream C signaling freezing ability to pass the t1 f-bit position through the elastic stores in the 2.048mhz backplane mode access to the data streams in between the framer/formatter and the elastic stores user-selectable synthesized clock output hdlc controllers two independent hdlc controllers fast load and unload features for fifos ss7 support for fisu transmit and receive independent 128-byte rx and tx buffers with interrupt support access fdl, sa, or single/multiple ds0 channels ds0 access includes nx64 or nx56 compatible with polled or interrupt driven environments bit-oriented code (boc) support test and diagnostics programmable on-chip bi t error-rate testing pseudorandom patterns including qrss user-defined repetitive patterns daly pattern error insertion single and continuous total bit and errored bit counts payload error insertion error insertion in the payload portion of the t1 frame in the transmit path errors can be inserted over the entire frame or selected channels insertion options include continuous and absolute number with selectable insertion rates f-bit corruption for line testing loopbacks: remote, local, analog, and per-channel loopback extended system information bus host can read interrupt and alarm status on up to 8 ports with a single bus read user-programmable output pins four user-defined output pins for controlling external logic control port 8-bit parallel control port multiplexed or nonmultiplexed buses intel or motorola formats supports polled or interrupt environments software access to device id and silicon revision software reset supported C automatic clear on power-up hardware reset pin downloaded from: http:///
ds2155 12 of 238 the ds2155 is compliant with the following standards: ansi: t1.403-1995, t1.231C1993, t1.408 at&t: tr54016, tr62411 itu: g.703, g.704, g.706, g.736, g.775, g.823, g.932, i.431, o.151, q.161 itu-t: recommendation i.432C03/93 b-isdn user-network interfacephysical layer specification etsi: ets 300 011, ets 300 166, ets 300 233, ctr12, ctr4 japanese: jtg.703, jti.431, jj-20.11 (cmi coding only) downloaded from: http:///
ds2155 13 of 238 3.1 functional description the ds2155 is a software-selectable t1, e1, or j1 si ngle-chip transceiver (sct) for short-haul and long- haul applications. the ds2155 is composed of an li u, framer, hdlc controllers, and a tdm backplane interface, and is controlled by an 8- bit parallel port configured for intel or motorola bus operations. the ds2155 is pin and software compatible with the ds2156. the liu is composed of transmit and receive interfaces and a jitter attenuator. the transmit interface is responsible for generating the necessary waveshapes for driving the network and providing the correct source impedance depending on the type of media used. t1 waveform generation includes dsx-1 line buildouts as well as csu line buil douts of -7.5db, -15db, and -22.5db. e1 waveform generation includes g.703 waveshapes for both 75 ? coax and 120 ? twisted cables. the receive interface provides network termination and recovers clock and data from the ne twork. the receive sensitivity adjusts automatically to the incoming signal and can be programmed for 0 to -43db or 0 to -12db for e1 applications and 0 to -15db or 0 to -36db for t1 applications. th e jitter attenuator remove s phase jitter from the transmitted or received signal. the cr ystal-less jitter attenuator requ ires only a 2.048mhz mclk for both e1 and t1 applications (with the option of usi ng a 1.544mhz mclk in t1 applications) and can be placed in either transmit or receive data paths. an additional feature of the liu is a cmi coder/decoder for interfacing to optical networks. on the transmit side, clock, data, and frame-sync si gnals are provided to th e framer by the backplane interface section. the framer inserts the appropriate synchronization fr aming patterns, alarm information, calculates and inserts th e crc codes, and provides the b8zs/ hdb3 (zero code suppression) and ami line coding. the receive-side framer decodes ami, b8zs, and hdb3 line coding, synchronizes to the data stream, reports alarm information, counts fram ing/coding/crc errors, and provides clock/data and frame-sync signals to the backplane interface section. both the transmit and receive path have two hdl c controllers. the hdlc controllers transmit and receive data through the framer block. the hdlc cont rollers can be assigned to any time slot, group of time slots, portion of a time slot or to fdl (t1) or sa bits (e1). each controller has 128-byte fifos, thus reducing the amount of processor ove rhead required to manage the flow of data. in a ddition, built-in support for reducing the processor time is required in ss7 applications. the backplane interface provides a versatile method of sending and receiving data from the host system. elastic stores provide a method for interfacing to asynchronous systems, converting from a t1/e1 network to a 2.048mhz, 4.096mhz, 8.192mhz, or n x 64khz system backplane. the elastic stores also manage slip conditions (asynchronous interface). an in terleave bus option (ibo) is provided to allow up to eight transceivers to share a high-speed backplane. the parallel port provides access for control and configuration of the ds2155s features. the extended system information bus (esib) function allows up to eight transceivers to be accessed by a single read for interrupt status or other user-s electable alarm status informati on. diagnostic capabilities include loopbacks, prbs pattern generation/detection, a nd 16-bit loop-up and loop-down code generation and detection. downloaded from: http:///
ds2155 14 of 238 readers note: this data sheet assumes a particular nomen clature of the t1 operating environment. in each 125 s frame there are 24 8-bit channels plus a framing b it. it is assumed that the framing bit is sent first followed by channel 1. each cha nnel is made up of eight bits that are numbered 1 to 8. bit number 1 is the msb and is transmitted first. bit number 8 is th e lsb and is transmitted last. the term locked is used to refer to two clock signals that are phase- or frequency-locked or de rived from a common clock (i.e., a 1.544mhz clock can be lock ed to a 2.048mhz clock if they share the same 8khz component). throughout this data sheet, the fo llowing abbreviations are used: b8zs bipolar with 8 zero substitution boc bit-oriented code crc cyclical redundancy check d4 superframe (12 frames per multiframe) multiframe structure esf extended superframe (24 frames per multiframe) multiframe structure fdl facility data link fps framing pattern sequence in esf fs signaling framing pattern in d4 ft terminal framing pattern in d4 hdlc high-level data link control mf multiframe slcC96 subscriber loop carrier96 channels downloaded from: http:///
ds2155 15 of 238 3.2 block diagram figure 3-1 shows a simplified block diag ram featuring the major compone nts of the ds2155. details are shown in subsequent figures. the block diagram is divided into three functional blocks: liu, framer, and backplane interface. figure 3-1. block diagram tx liu clock adapter backplane interface circuit host interface t1/e1/j1 network clock jtag esib rx liu jitter attenuator local loopback remote loopback framer loopback payload loopback mux mux external access to receive signals external access to transmit signals backplane backplane clock synth liu framer backplane interface sync hdlcs singaling alarm det framer crc gen singaling alarm gen hdlcs hdb3 / b8zs hdb3 / b8zs downloaded from: http:///
ds2155 16 of 238 figure 3-2. receive and transmit liu local loopback tring ttip jitter attenuator transmit or receive path receive line i/f rring rtip remote loopback vco / pll mclk 8xclk 32.768mhz xtald rposo rnego rnegi rposi tposi tnegi tnego tposo rclko rclki tclki tclko liuc mux mux rpos rneg rclk tpos tneg tclk jaclk rcl transmit line i/f downloaded from: http:///
ds2155 17 of 238 figure 3-3. receive and transmit framer/hdlc receive framer transmit framer data clock sync sync clock data framer loopback xmit hdlc #1 mapper xmit hdlc #2 mapper 128 byte fifo 128 byte fifo mapper mapper rec hdlc #1 rec hdlc #2 128 byte fifo 128 byte fifo data clock sync sync clock data rpos rneg rclk tpos tneg tclk payload loopback downloaded from: http:///
ds2155 18 of 238 figure 3-4. backplane interface rlink rlclk rsig rsigfr rser rclk rsync rdata rfsync rmsync elastic store signaling buffer sa bit/fdl extraction data clock sync rchblk rchclk channel timing rsysclk tser tsig tssync tsync tdata teso tchblk tchclk tlink tlclk channel timing sync clock data signaling buffer elastic store sa/fdl insert tclk mux tclk tsysclk jaclk downloaded from: http:///
ds2155 19 of 238 4. pin function description 4.1 transmit side signal name: tclk signal description: transmit clock signal type: input a 1.544mhz (t1) or a 2.048mhz (e1) primary clock. used to clock data through the transmit-side formatter. tclk can be internally sourced from mclk. this is th e most flexible method and requires only a single clock signal for both t1 or e1. if internal sourcing is used, then the tclk pin should be connected low. signal name: tser signal description: transmit serial data signal type: input transmit nrz serial data. sampled on the falling edge of tc lk when the transmit-side elastic store is disabled. sampled on the falling edge of tsysclk when the transmit-side elastic store is enabled. signal name: tchclk signal description: transmit channel clock signal type: output a 192khz (t1) or 256khz (e1) clock that pulses high during the lsb of each channel. can also be programmed to output a gated transmit bit clock on a per-channel basis. sy nchronous with tclk when the transmit-side elastic store is disabled. synchronous with tsysclk when the tran smit-side elastic store is enabled. useful for parallel- to-serial conversion of channel data. signal name: tchblk signal description: transmit channel block signal type: output a user-programmable output that can be forced high or low during any of the channels. synchronous with tclk when the transmit-side elastic store is disabled. synchronous with tsysclk when the transmit-side elastic store is enabled. useful for blocking clocks to a serial uart or lapd controller in a pplications where not all channels are used such as fractional t1, fractional e1, 384kbps (h 0), 768kbps, or isdnCpri. also useful for locating individual channels in drop-and-in sert applications, for external pe r-channel loopback, and for per-channel conditioning. signal name: tsysclk signal description: transmit system clock signal type: input 1.544mhz, 2.048mhz, 4.096mhz, 8.192mhz, or 16.384mhz cl ock. only used when the transmit-side elastic store function is enabled. should be connected low in app lications that do not use the transmit-side elastic store. see section 28 for details on 4.096mhz, 8.192mhz, and 16.384mhz operation using the ibo. signal name: tlclk signal description: transmit link clock signal type: output demand clock for the transmit link data [tlink] input. t1 mode: a 4khz or 2khz (zbtsi) clock. e1 mode: a 4khz to 20khz clock. downloaded from: http:///
ds2155 20 of 238 signal name: tlink signal description: transmit link data signal type: input if enabled, this pin is sampled on the falling edge of tclk for data insertion into either the fdl stream (esf) or the fs-bit position (d4), or the z-bit position (zbts i) or any combination of the sa-bit positions (e1). signal name: tsync signal description: transmit sync signal type: input/output a pulse at this pin establishes either frame or multifra me boundaries for the transmit side. can be programmed to output either a frame or multiframe pulse. if this pin is set to output pulses at frame boundaries, it can also be set by iocr1.3 to output double-wide pulses at signaling frames in t1 mode. signal name: tssync signal description: transmit system sync signal type: input only used when the transmit-side elastic store is enabled. a pulse at this pin establishes either frame or multiframe boundaries for the transmit side. should be connected low in applications that do not use the transmit-side elastic store. signal name: tsig signal description: transmit signaling input signal type: input when enabled, this input samples signaling bits fo r insertion into outgoing pcm data stream. sampled on the falling edge of tclk when the transmit-side elastic st ore is disabled. sampled on the falling edge of tsysclk when the transmit-side elastic store is enabled. signal name: teso signal description: transmit elastic store data output signal type: output updated on the rising edge of tclk with data out of the transmit-side elastic store whether the elastic store is enabled or not. this pin is normally connected to tdata. signal name: tdata signal description: transmit data signal type: input sampled on the falling edge of tclk with data to be clocked through the transmit-side formatter. this pin is normally connected to teso. signal name: tposo signal description: transmit positive-data output signal type: output updated on the rising edge of tclko with the bipolar data out of the transmit-side formatter. can be programmed to source nrz data by the output data format (iocr1.0) c ontrol bit. this pin is normally connected to tposi. signal name: tnego signal description: transmit negative-data output signal type: output updated on the rising edge of tclko with the bipolar data out of the transmit-side formatter. this pin is normally connected to tnegi. signal name: tclko downloaded from: http:///
ds2155 21 of 238 signal description: transmit clock output signal type: output buffered clock that is used to clock data through the transm it-side formatter (i.e., either tclk or rclki). this pin is normally connected to tclki. signal name: tposi signal description: transmit positive-data input signal type: input sampled on the falling edge of tclki for data to be tran smitted out onto the t1 line. can be internally connected to tposo by connecting the liuc pin high. tposi and tn egi can be connected together in nrz applications. signal name: tnegi signal description: transmit negative-data input signal type: input sampled on the falling edge of tclki for data to be tran smitted out onto the t1 line. can be internally connected to tnego by connecting the liuc pin high. tposi and tn egi can be connected together in nrz applications. signal name: tclki signal description: transmit clock input signal type: input line interface transmit clock. can be internally connected to tclko by connecting the liuc pin high. 4.2 receive side signal name: rlink signal description: receive link data signal type: output t1 mode: updated with either fdl data (esf) or fs bits (d4) or z bits (zbtsi) one rclk before the start of a frame. e1 mode: updated with the full e1 data stream on the rising edge of rclk. signal name: rlclk signal description: receive link clock signal type: output t1 mode: a 4khz or 2khz (zbtsi) clock for the rlink output. e1 mode: a 4khz to 20khz clock. signal name: rclk signal description: receive clock signal type: output 1.544mhz (t1) or 2.048mhz (e1) cl ock that is used to clock data through the receive-side framer. signal name: rchclk signal description: receive channel clock signal type: output a 192khz (t1) or 256khz (e1) clock that pulses high dur ing the lsb of each channel. synchronous with rclk when the receive-side elastic store is disabled. synchronous with rsysclk wh en the receive-side elastic store is enabled. useful for parallel-to-ser ial conversion of channel data. downloaded from: http:///
ds2155 22 of 238 signal name: rchblk signal description: receive channel block signal type: output a user-programmable output that can be forced high or low during any of the 24 t1 or 32 e1 channels. synchronous with rclk when the receive-side elastic st ore is disabled. synchronous with rsysclk when the receive-side elastic store is enabled. useful for blocking clocks to a serial uart or lapd controller in applications where not all channels are used such as fractional service, 384kbps service, 768kbps, or isdnCpri. also useful for locating individual channels in drop-and- insert applications, for external per-channel loopback, and for per-channel conditioning. see section 18 for details. signal name: rser signal description: receive serial data signal type: output received nrz serial data. updated on rising edges of rcl k when the receive-side elastic store is disabled. updated on the rising edges of rsysclk when the receive-side elastic store is enabled. signal name: rsync signal description: receive sync signal type: input/output an extracted pulse, one rclk wide, is output at this pin that identifies either frame (iocr1.5 = 0) or multiframe (iocr1.5 = 1) boundaries. if set to output frame boundaries, then through iocr1.6, rs ync can also be set to output double-wide pulses on signaling frames in t1 mode. if th e receive-side elastic store is enabled, then this pin can be enabled to be an input through iocr1.4, at wh ich a frame or multiframe boundary pulse is applied. signal name: rfsync signal description: receive frame sync signal type: output an extracted 8khz pulse, one rclk wide, is outpu t at this pin that identifies frame boundaries. signal name: rmsync signal description: receive multiframe sync signal type: output an extracted pulse, one rclk wide (elastic store disabled) or one rsysclk wide (elastic store enabled), is output at this pin that identifies multiframe boundaries. signal name: rdata signal description: receive data signal type: output updated on the rising edge of rclk with the data out of the receive-side framer. signal name: rsysclk signal description: receive system clock signal type: input 1.544mhz, 2.048mhz, 4.096mhz, or 8.192mhz clock. only used when the receive-side elastic store function is enabled. should be connected low in applications that do not use the receive-side elastic store. see section 28 for details on 4.096mhz and 8.192m hz operation using the ibo. signal name: rsig signal description: receive signaling output signal type: output outputs signaling bits in a pcm format. updated on rising edges of rclk when the receive-side elastic store is disabled. updated on the rising edges of rsysclk wh en the receive-side elastic store is enabled. downloaded from: http:///
ds2155 23 of 238 signal name: rlos/lotc signal description: receive loss-of-sync/loss-of-transmit clock signal type: output a dual function output that is controlled by the ccr1.0 cont rol bit. this pin can be programmed to either toggle high when the synchronizer is searching for the frame a nd multiframe or to toggle hi gh if the tclk pin has not been toggled for 5 s. signal name: rcl signal description: receive carrier loss signal type: output set high when the line interface detects a carrier loss. signal name: rsigf signal description: receive signaling freeze signal type: output set high when the signaling data is frozen by either auto matic or manual intervention. used to alert downstream equipment of the condition. signal name: bpclk signal description: backplane clock signal type: output a user-selectable synthesized clock output that is refere nced to the clock that is output at the rclk pin. signal name: rposo signal description: receive positive-data output signal type: output updated on the rising edge of rclko with bipolar data out of the line interface. this pin is normally connected to rposi. signal name: rnego signal description: receive negative-data output signal type: output updated on the rising edge of rclko with the bipolar data out of the line interface. this pin is normally connected to rnegi. signal name: rclko signal description: receive clock output signal type: output buffered recovered clock from the network. this pin is normally connected to rclki. signal name: rposi signal description: receive positive-data input signal type: input sampled on the falling edge of rclki for data to be cl ocked through the receive-side framer. rposi and rnegi can be connected together for an nrz interface. can be internally connected to rposo by connecting the liuc pin high. signal name: rnegi signal description: receive negative-data input signal type: input sampled on the falling edge of rclki for data to be cl ocked through the receive-side framer. rposi and rnegi can be connected together for an nrz interface. can be internally connected to rnego by connecting the liuc pin high. downloaded from: http:///
ds2155 24 of 238 signal name: rclki signal description: receive clock input signal type: input clock used to clock data through the receive-side framer. this pin is normally connected to rclko. can be internally connected to rclko by connecting the liuc pin high. 4.3 parallel control port pins signal name: in t signal description: interrupt signal type: output flags host controller during conditions and events defined in the status registers. active-low, open-drain output. signal name: tstrst signal description: tri-state control and device reset signal type: input a dual function pin. a 0-to-1 transition issues a hardware reset to the ds2155 register set. a reset clears all configuration registers. configuration register contents are set to 0. leaving tstrst high tri-states all output and i/o pins (including the parallel control port). set low for normal operation. useful in board-level testing. signal name: mux signal description: bus operation signal type: input set low to select nonmultiplexed bus operation. set high to select multiplexed bus operation. signal name: ad0 to ad7 signal description: data bus [d0 to d7] or address/data bus signal type: input/output in nonmultiplexed bus operation (mux = 0), these serve as th e data bus. in multiplexed bus operation (mux = 1), these pins serve as an 8-bit multiplexed address/data bus. signal name: a0 to a6 signal description: address bus signal type: input in nonmultiplexed bus operation (mux = 0), these ser ve as the address bus. in multiplexed bus operation (mux = 1), these pins are not used and should be connected low. signal name: bts signal description: bus type select signal type: input strap high to select motorola bus timing ; strap low to select intel bus timing. this pin controls the function of the rd ( ds ), ale (as), and wr (r/ w ) pins. if bts = 1, then these pins assume the function listed in parentheses (). signal name: rd ( ds ) signal description: read input, data strobe signal type: input in intel mode, rd determines when data is read from the device. in motorola mode, ds is used to write to the device. see bus timing diagrams . downloaded from: http:///
ds2155 25 of 238 signal name: cs signal description: chip select signal type: input must be low to read or write to the device. cs is an active-low signal. signal name: ale(as)/a7 signal description: address latch enable (address strobe) or a7 signal type: input in nonmultiplexed bus operation (mux = 0), serves as th e upper address bit. in multiplexed bus operation (mux = 1), serves to demultiplex the bus on a positive-going edge. signal name: wr (r/ w ) signal description: write input(read/write) signal type: input wr is an active-low signal. 4.4 extended system information bus signal name: esibs0 signal description: extended system information bus select 0 signal type: input/output used to group two to eight ds2155s into a bus-shari ng mode for alarm and status reporting. see section 29 for more details. signal name: esibs1 signal description: extended system information bus select 1 signal type: input/output used to group two to eight ds2155s into a bus-shari ng mode for alarm and status reporting. see section 29 for more details. signal name: esibrd signal description: extended system information bus read signal type: input/output used to group two to eight ds2155s into a bus-shari ng mode for alarm and status reporting. see section 29 for more details. downloaded from: http:///
ds2155 26 of 238 4.5 user output port pins signal name: uop0 signal description: user output port 0 signal type: output this output port pin can be set low or high by the ccr4.0 control bit. this pin is forced low on power-up and after any device reset. signal name: uop1 signal description: user output port 1 signal type: output this output port pin can be set low or high by the ccr4.1 control bit. this pin is forced low on power-up and after any device reset. signal name: uop2 signal description: user output port 2 signal type: output this output port pin can be set low or high by the ccr4.2 control bit. this pin is forced low on power-up and after any device reset. signal name: uop3 signal description: user output port 3 signal type: output this output port pin can be set low or high by the ccr4.3 control bit. this pin is forced low on power-up and after any device reset. downloaded from: http:///
ds2155 27 of 238 4.6 jtag test access port pins signal name: jtrst signal description: ieee 1149.1 test reset signal type: input jtrst is used to asynchronously reset the test access por t controller. after power-up, jtrst must be toggled from low to high. this action sets the device into the jtag device id mode. normal device operation is restored by pulling jtrst low. jtrst is pulled high internally by a 10k ? resistor operation. signal name: jtms signal description: ieee 1149.1 test mode select signal type: input this pin is sampled on the rising edge of jtclk and is u sed to place the test access port into the various defined ieee 1149.1 states. this pin has a 10k ? pullup resistor. signal name: jtclk signal description: ieee 1149.1 test clock signal signal type: input this signal is used to shift data into jtdi on th e rising edge and out of jtdo on the falling edge. signal name: jtdi signal description: ieee 1149.1 test data input signal type: input test instructions and data are clocked into this pin on the rising edge of jtclk. this pin has a 10k ? pullup resistor. signal name: jtdo signal description: ieee 1149.1 test data output signal type: output test instructions and data are clocked out of this pin on the falling edge of jtclk. if not used, this pin should be left unconnected. downloaded from: http:///
ds2155 28 of 238 4.7 line interface pins signal name: mclk signal description: master clock input signal type: input a (50ppm) clock source is applied at this pin. this clock is used internally for both clock/data recovery and for the jitter attenuator for t1 and e1 modes. a quartz crystal of 2.048mhz can be applied across mclk and xtald instead of the clock source. the clock rate can be 16.384mhz, 8.192mhz, 4.096mhz, or 2.048mhz. when using the ds2155 in t1-only operation, a 1.544mhz (50ppm) clock source can be used. signal name: xtald signal description: quartz crystal driver signal type: output a quartz crystal of 2.048mhz (optional 1.544mhz in t1-only operation) can be applied across mclk and xtald instead of a clock source at mclk. leave open circuited if a clock source is applied at mclk. signal name: 8xclk signal description: eight times clock (8x) signal type: output an 8x clock that is locked to the recovered network clock provided from the clock/data recovery block (if the jitter attenuator is enabled on the receive side) or from the tclki pin (if the jitter attenuator is enabled on the transmit side). signal name: liuc signal description: line interface connect signal type: input connect low to separate the line interface circuitry from the framer/formatter circuitry and activate the tposi/tnegi/tclki/rposi/rnegi/rclki pins. connect hi gh to connect the line interface circuitry to the framer/formatter circuitry and deactivate the tposi/tne gi/tclki/rposi/rnegi/rclki pins. when liuc is connected high, the tposi/tnegi/tclki/rposi/r negi/rclki pins should be connected low. signal name: rtip and rring signal description: receive tip and ring signal type: input analog inputs for clock recovery circuitry. these pins connect through a 1:1 transformer to the network. see section 24 for details. signal name: ttip and tring signal description: transmit tip and ring signal type: output analog line driver outputs. these pins connect through a 1:2 step-up transformer to the network. see section 24 for details. downloaded from: http:///
ds2155 29 of 238 4.8 supply pins signal name: dvdd signal description: digital positive supply signal type: supply 3.3v 5%. should be connected to the rvdd and tvdd pins. signal name: rvdd signal description: receive analog positive supply signal type: supply 3.3v 5%. should be connected to the dvdd and tvdd pins. signal name: tvdd signal description: transmit analog positive supply signal type: supply 3.3v 5%. should be connected to the rvdd and dvdd pins. signal name: dvss signal description: digital signal ground signal type: supply should be connected to the rvss and tvss pins. signal name: rvss signal description: receive analog signal ground signal type: supply 0v. should be connected to dvss and tvss. signal name: tvss signal description: transmit analog signal ground signal type: supply 0v. should be connected to dvss and rvss. downloaded from: http:///
ds2155 30 of 238 4.9 l and g package pinout the ds2155 is available in either a 100-pin lqfp (l) or 10mm csbga, 0.8mm pitch (g) package. table 4-a. pin description sorted by pin number pin lqfp csbga symbol type function 1 a1 rchblk o receive channel block 2 b2 jtms i ieee 1149.1 test mode select 3 c3 bpclk o backplane clock 4 b1 jtclk i ieee 1149.1 test clock signal 5 d4 jtrst i ieee 1149.1 test reset 6 c2 rcl o receive carrier loss 7 c1 jtdi i ieee 1149.1 test data input 8 d3 uop0 o user output 0 9 d2 uop1 o user output 1 10 d1 jtdo o ieee 1149.1 test data output 11 e3 bts i bus type select 12 e2 liuc i line interface connect 13 e1 8xclk o eight times clock 14 e4 tstrst i test/reset 15 e5 uop2 o user output 2 16 f1 rtip i receive analog tip input 17 f2 rring i receive analog ring input 18 f3 rvdd receive an alog positive supply 19, 20, 24 f4, g1, j1 rvss receive analog signal ground 21 g2 mclk i master clock input 22 h1 xtald o quartz crystal driver 23 g3 uop3 o user output 3 25 h2 int o interrupt 26 k1 n.c. reserved for factory test 27, 28 j2, h3 n.c. reserved for factory test 29 k2 ttip o transmit analog tip output 30 g4 tvss C transmit analog signal ground 31 j3 tvdd C transmit analog positive supply 32 k3 tring o transmit analog ring output 33 h4 tchblk o transmit channel block 34 j4 tlclk o transmit link clock 35 k4 tlink i transmit link data 36 h5 esibs0 i/o extended system information bus 0 37 j5 tsync i/o transmit sync 38 k5 tposi i transmit positive-data input 39 g5 tnegi i transmit negative-data input 40 f5 tclki i transmit clock input 41 k6 tclko o transmit clock output 42 j6 tnego o transmit negative-data output 43 h6 tposo o transmit positive-data output 44, 61, 81, 83 k7, f8, b8, c7 dvdd digital positive supply 45, 60, 80, 84 g6, g10, d7, b7 dvss digital signal ground 46 j7 tclk i transmit clock 47 k8 tser i transmit serial data 48 h7 tsig i transmit signaling input 49 k9 teso o transmit elastic store output 50 j8 tdata i transmit data downloaded from: http:///
ds2155 31 of 238 pin lqfp csbga symbol type function 51 k10 tsysclk i transmit system clock 52 j9 tssync i tran smit system sync 53 h8 tchclk o transmit channel clock 54 j10 esibs1 i/o extended system information bus 1 55 g7 mux i bus operation 56 h9 d0/ad0 i/o data bus bit0/address/data bus bit 0 57 h10 d1/ad1 i/o data bus bit1/address/data bus bit 1 58 g8 d2/ad2 i/o data bus bit 2/address/data bus 2 59 g9 d3/ad3 i/o data bus bit 3/address/data bus bit 3 62 f9 d4/ad4 i/o data bus bit4/address/data bus bit 4 63 f10 d5/ad5 i/o data bus bit 5/address/data bus bit 5 64 f7 d6/ad6 i/o data bus bit 6/address/data bus bit 6 65 f6 d7/ad7 i/o data bus bit 7/address/data bus bit 7 66 e10 a0 i address bus bit 0 67 e9 a1 i address bus bit 1 68 e8 a2 i address bus bit 2 69 d10 a3 i address bus bit 3 70 e7 a4 i address bus bit 4 71 d9 a5 i address bus bit 5 72 c10 a6 i address bus bit 6 73 d8 ale (as)/a7 i address latch enable/address bus bit 7 74 b10 rd ( ds ) i read input (data strobe) 75 c9 cs i chip select 76 a10 esibrd i/o extended system information bus read 77 b9 wr (r/ w ) i write input (read/write) 78 c8 rlink o receive link data 79 a9 rlclk o receive link clock 82 a8 rclk o receive clock 85 a7 rdata o receive data 86 c6 rposi i receive positive-data input 87 b6 rnegi i receive negative-data input 88 a6 rclki i receive clock input 89 d6 rclko o receive clock output 90 e6 rnego o receive negative-data output 91 a5 rposo o receive positive-data output 92 b5 rchclk o receive channel clock 93 c5 rsigf o receive signaling-freeze output 94 a4 rsig o receive signaling output 95 d5 rser o receive serial data 96 b4 rmsync o receive multiframe sync 97 a3 rfsync o r eceive frame sync 98 c4 rsync i/o receive sync 99 a2 rlos/lotc o receive loss-of-sync/loss-of-transmit clock 100 b3 rsysclk i r eceive system clock downloaded from: http:///
ds2155 32 of 238 4.10 10mm csbga pin configuration figure 4-1. 10mm csbga pin configuration 1 2 3 4 5 6 7 8 9 10 a rchblk rlos/ lotc rfsync rsig rposo rclki rdata rclk rlclk esibrd b jtclk jtms rsysclk rmsync rchclk rnegi dvss dvdd wr (r/ w ) rd ( ds ) c jtdi rcl bpclk rsync rsigf rposi dvdd rlink cs a6 d jtdo uop1 uop0 jtrst rser rclko dvss ale(as)/ a7 a5 a3 e 8xclk liuc bts tstrst uop2 rnego a4 a2 a1 a0 f rtip rring rvdd rvss tclki d7/ad7 d6/ad6 dvdd d4/ad4 d5/ad5 g rvss mclk uop3 tvss tnegi dvss mux d2/ad2 d3/ad3 dvss h xtald int n.c. tchblk esibs0 tposo tsig tchclk d0/ad0 d1/ad1 j rvss n.c. tvdd tlclk tsync tnego tclk tdata tssync esibs1 k tusel ttip tring tlink tposi tclko dvdd tser teso tsysclk top view downloaded from: http:///
ds2155 33 of 238 5. parallel port the sct is controlled by either a nonmultiplexed (mux = 0) or a multiplexed (mux = 1) bus through an external microcontroller or microprocessor. the sct can operate with either intel or motorola bus timing configurations. if the bts pin is connected low, intel ti ming is selected; if c onnected high, motorola timing is selected. all motorola bus signals are lis ted in parentheses (). s ee the timing diagrams in ac electrical characteristics in section 37 for more details. 5.1 register map table 5-a. register map sorted by address address xxh r/w register name symbol page 00 r/w master mode register mstrreg 40 01 r/w i/o configuration register 1 iocr1 69 02 r/w i/o configuration register 2 iocr2 70 03 r/w t1 receive control register 1 t1rcr1 46 04 r/w t1 receive control register 2 t1rcr2 47 05 r/w t1 transmit control register 1 t1tcr1 48 06 r/w t1 transmit control register 2 t1tcr2 49 07 r/w t1 common control register 1 t1ccr1 50 08 r/w software signaling insertion enable 1 ssie1 93 09 r/w software signaling insertion enable 2 ssie2 93 0a r/w software signaling insertion enable 3 ssie3 94 0b r/w software signaling insertion enable 4 ssie4 94 0c r/w t1 receive digital milliwatt enable register 1 t1rdmr1 52 0d r/w t1 receive digital milliwatt enable register 2 t1rdmr2 52 0e r/w t1 receive digital milliwatt enable register 3 t1rdmr3 52 0f r device identification register idr 63 10 r/w information register 1 info1 53 11 r information register 2 info2 153 12 r/w information register 3 info3 60 13 unused 14 r interrupt information register 1 iir1 42 15 r interrupt information register 2 iir2 42 16 r/w status register 1 sr1 154 17 r/w interrupt mask register 1 imr1 155 18 r/w status register 2 sr2 63 19 r/w interrupt mask register 2 imr2 64 1a r/w status register 3 sr3 65 1b r/w interrupt mask register 3 imr3 66 1c r/w status register 4 sr4 67 1d r/w interrupt mask register 4 imr4 68 1e r/w status register 5 sr5 106 1f r/w interrupt mask register 5 imr5 106 20 r/w status register 6 sr6 135 21 r/w interrupt mask register 6 imr6 136 22 r/w status register 7 sr7 135 23 r/w interrupt mask register 7 imr7 136 24 r/w status register 8 sr8 112 downloaded from: http:///
ds2155 34 of 238 address xxh r/w register name symbol page 25 r/w interrupt mask register 8 imr8 112 26 r/w status register 9 sr9 174 27 r/w interrupt mask register 9 imr9 175 28 r/w per-channel pointer register pcpr 43 29 w per-channel data register 1 pcdr1 44 2a w per-channel data register 2 pcdr2 44 2b w per-channel data register 3 pcdr3 44 2c w per-channel data register 4 pcdr4 44 2d r/w information register 4 info4 137 2e r information register 5 info5 137 2f r information register 6 info6 137 30 r information register 7 info7 60 31 r/w hdlc #1 receive control h1rc 129 32 r/w hdlc #2 receive control h2rc 129 33 r/w e1 receive control register 1 e1rcr1 55 34 r/w e1 receive control register 2 e1rcr2 56 35 r/w e1 transmit control register 1 e1tcr1 57 36 r/w e1 transmit control register 2 e1tcr2 58 37 r/w boc control register bocc 111 38 r/w receive signaling change-of-state information 1 rsinfo1 88 39 r/w receive signaling change-of-state information 2 rsinfo2 88 3a r/w receive signaling change-of-state information 3 rsinfo3 88 3b r/w receive signaling change-of-state information 4 rsinfo4 88 3c r/w receive signaling change-of-state interrupt enable 1 rscse1 88 3d r/w receive signaling change-of-state interrupt enable 2 rscse2 88 3e r/w receive signaling change-of-state interrupt enable 3 rscse3 88 3f r/w receive signaling change-of-state interrupt enable 4 rscse4 88 40 r/w signaling control register sigcr 85 41 r/w error count configuration register ercnt 75 42 r line code violation count register 1 lcvcr1 77 43 r line code violation count register 2 lcvcr2 77 44 r path code violation count register 1 pcvcr1 78 45 r path code violation count register 2 pcvcr2 78 46 r frames out-of-sync count register 1 foscr1 79 47 r frames out-of-sync count register 2 foscr2 79 48 r e-bit count register 1 ebcr1 80 49 r e-bit count register 2 ebcr2 80 4a r/w loopback control register lbcr 71 4b r/w per-channel loopback enable register 1 pclr1 73 4c r/w per-channel loopback enable register 2 pclr2 73 4d r/w per-channel loopback enable register 3 pclr3 74 4e r/w per-channel loopback enable register 4 pclr4 74 4f r/w elastic store control register escr 105 50 r/w transmit signaling register 1 ts1 91 51 r/w transmit signaling register 2 ts2 91 52 r/w transmit signaling register 3 ts3 91 53 r/w transmit signaling register 4 ts4 91 downloaded from: http:///
ds2155 35 of 238 address xxh r/w register name symbol page 54 r/w transmit signaling register 5 ts5 91 55 r/w transmit signaling register 6 ts6 91 56 r/w transmit signaling register 7 ts7 91 57 r/w transmit signaling register 8 ts8 91 58 r/w transmit signaling register 9 ts9 91 59 r/w transmit signaling register 10 ts10 91 5a r/w transmit signaling register 11 ts11 91 5b r/w transmit signaling register 12 ts12 91 5c r/w transmit signaling register 13 ts13 91 5d r/w transmit signaling register 14 ts14 91 5e r/w transmit signaling register 15 ts15 91 5f r/w transmit signaling register 16 ts16 91 60 r receive signaling register 1 rs1 86 61 r receive signaling register 2 rs2 86 62 r receive signaling register 3 rs3 86 63 r receive signaling register 4 rs4 86 64 r receive signaling register 5 rs5 86 65 r receive signaling register 6 rs6 86 66 r receive signaling register 7 rs7 86 67 r receive signaling register 8 rs8 86 68 r receive signaling register 9 rs9 86 69 r receive signaling register 10 rs10 86 6a r receive signaling register 11 rs11 86 6b r receive signaling register 12 rs12 86 6c r receive signaling register 13 rs13 86 6d r receive signaling register 14 rs14 86 6e r receive signaling register 15 rs15 86 6f r receive signaling register 16 rs16 86 70 r/w common control register 1 ccr1 62 71 r/w common control register 2 ccr2 191 72 r/w common control register 3 ccr3 192 73 r/w common control register 4 ccr4 149 74 r/w transmit channel monitor select tds0sel 81 75 r transmit ds0 monitor register tds0m 81 76 r/w receive channel monitor select rds0sel 82 77 r receive ds0 monitor register rds0m 82 78 r/w line interface control 1 lic1 147 79 r/w line interface control 2 lic2 150 7a r/w line interface control 3 lic3 151 7b r/w line interface control 4 lic4 152 7c unused 7d r/w transmit line build-out control tlbc 149 7e w idle array address register iaar 98 7f r/w per-channel idle code value register pcicr 98 80 r/w transmit idle code enable register 1 tcice1 99 81 r/w transmit idle code enable register 2 tcice2 99 82 r/w transmit idle code enable register 3 tcice3 99 downloaded from: http:///
ds2155 36 of 238 address xxh r/w register name symbol page 83 r/w transmit idle code enable register 4 tcice4 99 84 r/w receive idle code enable register 1 rcice1 100 85 r/w receive idle code enable register 2 rcice2 100 86 r/w receive idle code enable register 3 rcice3 100 87 r/w receive idle code enable register 4 rcice4 100 88 r/w receive channel blocking register 1 rcbr1 101 89 r/w receive channel blocking register 2 rcbr2 101 8a r/w receive channel blocking register 3 rcbr3 102 8b r/w receive channel blocking register 4 rcbr4 102 8c r/w transmit channel blocking register 1 tcbr1 103 8d r/w transmit channel blocking register 2 tcbr2 103 8e r/w transmit channel blocking register 3 tcbr3 103 8f r/w transmit channel blocking register 4 tcbr4 103 90 r/w hdlc #1 transmit control h1tc 128 91 r/w hdlc #1 fifo control h1fc 130 92 r/w hdlc #1 receive channel select 1 h1rcs1 131 93 r/w hdlc #1 receive channel select 2 h1rcs2 131 94 r/w hdlc #1 receive channel select 3 h1rcs3 131 95 r/w hdlc #1 receive channel select 4 h1rcs4 131 96 r/w hdlc #1 receive time slot bits/sa bits select h1rtsbs 132 97 r/w hdlc #1 transmit channel select1 h1tcs1 133 98 r/w hdlc #1 transmit channel select2 h1tcs2 133 99 r/w hdlc #1 transmit channel select3 h1tcs3 133 9a r/w hdlc #1 transmit channel select4 h1tcs4 133 9b r/w hdlc #1 transmit time slot bits/sa bits select h1ttsbs 134 9c r hdlc #1 receive packet bytes available h1rpba 138 9d w hdlc #1 transmit fifo h1tf 139 9e r hdlc #1 receive fifo h1rf 139 9f r hdlc #1 transmit fifo buffer available h1tfba 138 a0 r/w hdlc #2 transmit control h2tc 128 a1 r/w hdlc #2 fifo control h2fc 130 a2 r/w hdlc #2 receive channel select 1 h2rcs1 131 a3 r/w hdlc #2 receive channel select 2 h2rcs2 131 a4 r/w hdlc #2 receive channel select 3 h2rcs3 131 a5 r/w hdlc #2 receive channel select 4 h2rcs4 131 a6 r/w hdlc #2 receive time slot bits/sa bits select h2rtsbs 132 a7 r/w hdlc #2 transmit channel select1 h2tcs1 133 a8 r/w hdlc #2 transmit channel select2 h2tcs2 133 a9 r/w hdlc #2 transmit channel select3 h2tcs3 133 aa r/w hdlc #2 transmit channel select4 h2tcs4 133 ab r/w hdlc #2 transmit time slot bits/sa bits select h2ttsbs 134 ac r hdlc #2 receive packet bytes available h2rpba 138 ad w hdlc #2 transmit fifo h2tf 139 ae r hdlc #2 receive fifo h2rf 139 af r hdlc #2 transmit fifo buffer available h2tfba 138 b0 r/w extend system information bus control register 1 esibcr1 188 b1 r/w extend system information bus control register 2 esibcr2 189 downloaded from: http:///
ds2155 37 of 238 address xxh r/w register name symbol page b2 r extend system information bus register 1 esib1 190 b3 r extend system information bus register 2 esib2 190 b4 r extend system information bus register 3 esib3 190 b5 r extend system information bus register 4 esib4 190 b6 r/w in-band code control register ibcc 164 b7 r/w transmit code definition register 1 tcd1 165 b8 r/w transmit code definition register 2 tcd2 165 b9 r/w receive up code definition register 1 rupcd1 166 ba r/w receive up code definition register 2 rupcd2 166 bb r/w receive down code definition register 1 rdncd1 167 bc r/w receive down code definition register 2 rdncd2 167 bd r/w in-band receive spare control register rscc 168 be r/w receive spare code definition register 1 rscd1 169 bf r/w receive spare code definition register 2 rscd2 169 c0 r receive fdl register rfdl 141 c1 r/w transmit fdl register tfdl 142 c2 r/w receive fdl match register 1 rfdlm1 141 c3 r/w receive fdl match register 2 rfdlm2 141 c4 unused c5 r/w interleave bus operation control register iboc 185 c6 r receive align frame register raf 114 c7 r receive nonalign frame register rnaf 114 c8 r receive si align frame rsiaf 116 c9 r receive si nonalign frame rsinaf 117 ca r receive remote alarm bits rra 117 cb r receive sa4 bits rsa4 118 cc r receive sa5 bits rsa5 118 cd r receive sa6 bits rsa6 119 ce r receive sa7 bits rsa7 119 cf r receive sa8 bits rsa8 120 d0 r/w transmit align frame register taf 115 d1 r/w transmit nonalign frame register tnaf 115 d2 r/w transmit si align frame tsiaf 120 d3 r/w transmit si nonalign frame tsinaf 121 d4 r/w transmit remote alarm bits tra 121 d5 r/w transmit sa4 bits tsa4 122 d6 r/w transmit sa5 bits tsa5 122 d7 r/w transmit sa6 bits tsa6 123 d8 r/w transmit sa7 bits tsa7 123 d9 r/w transmit sa8 bits tsa8 124 da r/w transmit sa bit control register tsacr 125 db r/w bert alternating word count rate bawc 175 dc r/w bert repetitive pattern set register 1 brp1 176 dd r/w bert repetitive pattern set register 2 brp2 176 de r/w bert repetitive pattern set register 3 brp3 176 df r/w bert repetitive pattern set register 4 brp4 176 e0 r/w bert control register 1 bc1 172 downloaded from: http:///
ds2155 38 of 238 address xxh r/w register name symbol page e1 r/w bert control register 2 bc2 173 e2 unused e3 r bert bit count register 1 bbc1 177 e4 r bert bit count register 2 bbc2 177 e5 r bert bit count register 3 bbc3 177 e6 r bert bit count register 4 bbc4 177 e7 r bert error count register 1 bec1 178 e8 r bert error count register 2 bec2 178 e9 r bert error count register 3 bec3 178 ea r/w bert interface control register bic 179 eb r/w error rate control register erc 181 ec r/w number-of-errors 1 noe1 182 ed r/w number-of-errors 2 noe2 182 ee r number-of-errors left 1 noel1 183 ef r number-of-errors left 2 noel2 183 f0 * test register test f1Cf9 * test register test faCff * test register test *test1 to test16 registers are used only by the factory. downloaded from: http:///
ds2155 39 of 238 6. programming model the ds2155 register map is divided into three groups : t1 specific features, e1 specific features, and common features. the typical programming sequence begi ns with issuing a rese t to the ds2155, selecting t1 or e1 operation in the master mode register, enabling t1 or e1 functions and enabling the common functions. the act of resetting th e ds2155 automatically clears all conf iguration and stat us registers. therefore, it is not necessary to load unused registers with 0s. figure 6-1. programming sequence power-on issue reset select t1 or e1 operation in master mode register program t1 specific registers program e1 specific registers program common registers ds2155 operational downloaded from: http:///
ds2155 40 of 238 6.1 power-up sequence the ds2155 contains an on-chip power-up reset function that automatically clears the writeable register space immediately after power is supplied to the ds2155. the user can issue a chip reset at any time. issuing a reset disrupts traffic flowing through the ds2155 until the de vice is reprogrammed. the reset can be issued through hardware using the tstrst pi n or through software using the sftrst function in the master mode register. the lirst (lic2.6) should be toggled from 0 to 1 to reset the line interface circuitry. (it takes the ds2155 about 40 ms to recover from the lirst bit being toggled.) finally, after the tsysclk and rsysclk inputs are stable, the receive and transmit elastic stores should be reset (this step can be skipped if the elastic stores are disabled). 6.1.1 master mode register register name: mstrreg register description: master mode register register address: 00h bit # 7 6 5 4 3 2 1 0 name test1 test0 t1/e1 sftrst default 0 0 0 0 0 0 0 0 bit 0/software-issued reset (sftrst). a 0-to-1 transition causes the register space in the ds2155 to be cleared. a reset clears all configuration and status registers. the b it automatically clears itself wh en the reset has completed. bit 1/ds2155 operating mode (t1/e1). used to select the operating mode of the framer/formatter (digital) portion of the 2156. the operating mode of the liu must also be programmed. 0 = t1 operation 1 = e1 operation bits 2, 3/test mode bits (test0, test1). test modes are used to force the output pins of the ds2155 into known states. this can facilitate the checkout of assemblie s during the manufacturing process and also be used to isolate devices from shared buses. test1 test0 effect on output pins 0 0 operate normally 0 1 force all output pins into tri-state (i ncluding all i/o pins and parallel port pins) 1 0 force all output pins low (including all i/o pins except parallel port pins) 1 1 force all output pins high (including all i/o pins except parallel port pins) bits 4 to 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 41 of 238 6.2 interrupt handling various alarms, conditions, and events in the ds2155 can cause interrupts. for simplicity, these are all referred to as events in this e xplanation. all status registers can be programmed to produce interrupts. each status register has an associat ed interrupt mask register. for exampl e, sr1 (status register 1) has an interrupt control register called imr1 (interrupt mask register 1). status regist ers are the only sources of interrupts in the ds2155. on power-up, all writeable regi sters are automatically cl eared. since bits in the imrx registers have to be set = 1 to allow a particul ar event to cause an inte rrupt, no interrupts can occur until the host selects which events ar e to product interrupts. since ther e are potentially many sources of interrupts on the ds2155, several features are availabl e to help sort out and identify which event is causing an interrupt. when an interrupt occurs, the host should first read the iir1 and iir2 registers (interrupt information registers) to identify which stat us register (or registers) is producing the interrupt. once that is determined, the individual status register or registers can be examined to determine the exact source. in multiple port configurati ons, two to eight ds2155s can be c onnected together by the 3-wire esib feature. this allows multiple ds2155s to be interrogated by a sing le cpu port read cycle. the host can determine the synchronization status , or interrupt status of up to ei ght devices with a single read. the esib feature also allows the user to select from various events to be examined through this method. for more information, see section 29 . once an interrupt has occurred, the interrupt handler routin e should set the intdis bit (ccr3.6) to stop further activity on the interrupt pin. after all interrupt s have been determined a nd processed, the interrupt hander routine should re-enable interr upts by setting the intdis bit = 0. 6.3 status registers when a particular event or condition has occurred (o r is still occurring in the case of conditions), the appropriate bit in a status register is set to a 1. all of the status registers operate in a latched fashion. this means that if an event or condition occurs a bit is set to a 1. it remains set until th e user reads that bit. an event bit is cleared when it is read and it is not set again until the even t has occurred again. condition bits such as rbl, rlos, etc., remain set if the alarm is still present. the user always proceeds a read of any of the status registers with a wr ite. the byte written to the register informs the ds2155 which bits the user wishes to read and have cleared. the user writes a byte to one of these registers, with a 1 in the bit positions the user wishes to read and a 0 in the bit positions the user does not wish to obtain the latest in formation on. when a 1 is written to a bit location, the re ad register is updated with the latest information. when a 0 is written to a bit position, the read register is not updated and the previous value is held. a write to the status registers is immediately followed by a read of the same register. this write-read scheme allows an external microcontroller or microprocessor to individually poll certain bits without disturbing the other bits in the register . this operation is key in controlling the ds2155 with higher order languages. status register bits are divided into two groups, condi tion bits and event bits. condition bits are typically network conditions such as loss-of-s ync or all-ones detect. event bits are typically markers such as the one-second timer, elastic store slip, etc. each status re gister bit is labeled as a condition or event bit. some of the status registers have bits for both th e detection of a condition and the clearance of the condition. for example, sr2 has a bit that is set wh en the device goes into a loss-of-sync state (sr2.0, a condition bit) and a bit that is set (sr2.4, an event bi t) when the loss-of-sync condition clears (goes in sync). some of the status register bits (condition bits) do not have a se parate bit for th e condition clear event but rather the stat us bit can produce interrupts on both edge s, setting and clearing. these bits are marked as double interrupt bits. an interrupt is produced when the cond ition occurs and when it clears. downloaded from: http:///
ds2155 42 of 238 6.4 information registers information registers operate the same as status registers except they cannot cause interrupts. they are all latched except for info7 and some of the bits in info5 and info6. info7 re gister is a read-only register. it reports th e status of the e1 synchroni zer in real time. info7 and some of the bits in info6 and info5 are not latched and it is not necessary to precede a read of these bits with a write. 6.5 interrupt information registers the interrupt information registers provide an indicat ion of which status regist ers (sr1 through sr9) are generating an interrupt. when an interrupt occurs, the host can read iir1 and iir2 to quickly identify which of the nine status regi sters are causing the interrupt. register name: iir1 register description: interrupt information register 1 register address: 14h bit # 7 6 5 4 3 2 1 0 name sr8 sr7 sr6 sr5 sr4 sr3 sr2 sr1 default 0 0 0 0 0 0 0 0 register name: iir2 register description: interrupt information register 2 register address: 15h bit # 7 6 5 4 3 2 1 0 name u_rsr sr9 default 0 0 0 0 0 0 0 0 downloaded from: http:///
ds2155 43 of 238 7. special per-channel register operation some of the features described in the data sheet that operate on a pe r-channel basis use a special method for channel selection. there are five registers invol ved: per-channel pointer register (pcpr) and per- channel data registers 1C4 (pcdr1C4). the user selects which function or functions are to be applied on a per-channel basis by setting the appropria te bit(s) in the pcpr register. the user then writes to the pcdr registers to select the channels for that function. the following is an example of mapping the transmit and receive bert function to channels 9C12, 20, and 21. write 11h to pcpr write 00h to pcdr1 write 0fh to pcdr2 write 18h to pcdr3 write 00h to pcdr4 the user may write to the pcdr1-4 with muliple func tions in the pcpr register selected, but can only read the values from the pcdr1-4 registers for a si ngle function at a time. more information about how to use these per-channel features can be found in their respective sections in the data sheet. register name: pcpr register description: per-channel pointer register register address: 28h bit # 7 6 5 4 3 2 1 0 name rsaoics rsrcs rfcs brcs thscs peics tfcs btcs default 0 0 0 0 0 0 0 0 bit 0/bert transmit channel select (btcs) bit 1/transmit fractional channel select (tfcs) bit 2/payload error insert channel select (peics) bit 3/transmit hardware signaling channel select (thscs) bit 4/bert receive channel select (brcs) bit 5/receive fractional channel select (rfcs) bit 6/receive signaling reinsertion channel select (rsrcs) bit 7/receive signaling all-ones insertion channel select (rsaoics) downloaded from: http:///
ds2155 44 of 238 register name: pcdr1 register description: per-channel data register 1 register address: 29h bit # 7 6 5 4 3 2 1 0 name default ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 register name: pcdr2 register description: per-channel data register 2 register address: 2ah bit # 7 6 5 4 3 2 1 0 name default ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 register name: pcdr3 register description: per-channel data register 3 register address: 2bh bit # 7 6 5 4 3 2 1 0 name default ch24 ch23 ch22 ch21 ch20 ch19 ch18 ch17 register name: pcdr4 register description: per-channel data register 4 register address: 2ch bit # 7 6 5 4 3 2 1 0 name default ch32 ch31 ch30 ch29 ch28 ch27 ch26 ch25 downloaded from: http:///
ds2155 45 of 238 8. clock map figure 8-1 shows the clock map of the ds2155. the rou ting for the transmit and receive clocks are shown for the various loopback modes and j itter attenuator positions. although there is only one jitter attenuator, which can be placed in the receive or transmit pa th, two are shown for simplification and clarity. figure 8-1. clock map the tclk mux is dependent on the state of the tc ss0 and tcss1 bits in the ccr1 register and the state of the tclk pin. tcss1 tcss0 transmit clock source 0 0 the tclk pin (c) is always the source of transmit clock. 0 1 switch to the recovered clock (b) when the signal at the tclk pin fails to transition after one channel time. 1 0 use the scaled signal (a) derived from mclk as the transmit clock. the tclk pin is ignored. 1 1 use the recovered clock (b) as the transmit clock. the tclk pin is ignored. transmit formatter receive framer bpclk synth remote loopback framer loopback payload loopback (see notes) ltca ltca jitter attenuator see lic1 register local loopback bpclk rclk tclk mclk rxclk txclk to liu llb = 0 llb = 1 plb = 0 plb = 1 rlb = 1 rlb = 0 flb = 1 flb = 0 jas = 0 and dja = 0 jas = 1 or dja = 1 jas = 0 or dja = 1 jas = 1 and dja = 0 rcl = 1 rcl = 0 dja = 1 dja = 0 8xclk 8 x pll pre-scaler lic4.mps0 lic4.mps1 lic2.3 2.048 to 1.544 synthesizer b a c mclks = 0 tsysclk mclks = 1 tclk mux downloaded from: http:///
ds2155 46 of 238 9. t1 framer/formatter co ntrol and status registers the t1 framer portion of the ds2155 is configured thr ough a set of nine control registers. typically, the control registers are only accessed when the syst em is first powered up. once the ds2155 has been initialized, the control registers only need to be accessed when there is a change in the system configuration. there are two receive control regi sters (t1rcr1 and t1rcr2), two transmit control registers (t1tcr1 and t1tcr2), and a common control register (t1ccr1). each of these registers is described in this section. 9.1 t1 control registers register name: t1rcr1 register description: t1 receive control register 1 register address: 03h bit # 7 6 5 4 3 2 1 0 name arc oof1 oof2 syncc synct synce resync default 0 0 0 0 0 0 0 0 bit 0/resynchronize (resync). when toggled from low to high, a resynchronization of the receive-side framer is initiated. must be cleared and set again for a subsequent resync. bit 1/sync enable (synce) 0 = auto resync enabled 1 = auto resync disabled bit 2/sync time (synct) 0 = qualify 10 bits 1 = qualify 24 bits bit 3/sync criteria (syncc) in d4 framing mode: 0 = search for ft pattern, then search for fs pattern 1 = cross couple ft and fs pattern in esf framing mode: 0 = search for fps pattern only 1 = search for fps and verify with crc6 bits 4, 5/out-of-frame select bits (oof2, oof1) oof2 oof1 out-of-frame criteria 0 0 2/4 frame bits in error 0 1 2/5 frame bits in error 1 0 2/6 frame bits in error 1 1 2/6 frame bits in error bit 6/auto resync criteria (arc) 0 = resync on oof or rcl event 1 = resync on oof only bit 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 47 of 238 register name: t1rcr2 register description: t1 receive control register 2 register address: 04h bit # 7 6 5 4 3 2 1 0 name rfm rb8zs rslc96 rzse rzbtsi rjc rd4ym default 0 0 0 0 0 0 0 0 bit 0/receive-side d4 yellow alarm select (rd4ym) 0 = 0s in bit 2 of all channels 1 = a 1 in the s-bit position of frame 12 (j1 yellow alarm mode) bit 1/receive japanese crc6 enable (rjc) 0 = use ansi/at&t/itu crc6 calculation (normal operation) 1 = use japanese standard jtCg704 crc6 calculation bit 2/receive-side zbtsi support enable (rzbtsi). allows zbtsi information to be output on rlink pin. 0 = zbtsi disabled 1 = zbtsi enabled bit 3/receive fdl zero-destuffer enable (rzse). set this bit to 0 if using the internal hdlc/boc controller instead of the legacy suppor t for the fdl. see section 23.5 for details. 0 = zero destuffer disabled 1 = zero destuffer enabled bit 4/receive slc-96 enable (rslc96). only set this bit to a 1 in d4/slc-96 framing applications. see section 23.6 for details. 0 = slc-96 disabled 1 = slc-96 enabled bit 5/receive b8zs enable (rb8zs) 0 = b8zs disabled 1 = b8zs enabled bit 6/receive frame mode select (rfm) 0 = d4 framing mode 1 = esf framing mode bit 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 48 of 238 register name: t1tcr1 register description: t1 transmit control register 1 register address: 05h bit # 7 6 5 4 3 2 1 0 name tjc tfpt tcpt tsse gb7s tfdls tbl tyel default 0 0 0 0 0 0 0 0 bit 0/transmit yellow alarm (tyel) 0 = do not transmit yellow alarm 1 = transmit yellow alarm bit 1/transmit blue alarm (tbl) 0 = transmit data normally 1 = transmit an unframed all-ones code at tpos and tneg bit 2/tfdl register select (tfdls) 0 = source fdl or fs-bits from the internal tfdl register (legacy fdl support mode) 1 = source fdl or fs-bits from the internal hdlc controller or the tlink pin bit 3/global bit 7 stuffing (gb7s) 0 = allow the ssiex registers to determine which cha nnels containing all 0s are to be bit 7 stuffed 1 = force bit 7 stuffing in all 0-byte channels re gardless of how the ssiex registers are programmed bit 4/transmit software signaling enable (tsse). 0 = do not source signaling data from the tsx register s regardless of the ssiex registers. the ssiex registers still define which cha nnels are to have b7 stuffing preformed. 1 = source signaling data as enabled by the ssiex registers bit 5/transmit crc pass-through (tcpt) 0 = source crc6 bits internally 1 = crc6 bits sampled at tser during f-bit time bit 6/transmit f-bit pass-through (tfpt) 0 = f bits sourced internally 1 = f bits sampled at tser bit 7/transmit japanese crc6 enable (tjc) 0 = use ansi/at&t/itu crc6 calculation (normal operation) 1 = use japanese standard jtCg704 crc6 calculation downloaded from: http:///
ds2155 49 of 238 register name: t1tcr2 register description: t1 transmit control register 2 register address: 06h bit # 7 6 5 4 3 2 1 0 name tb8zs tslc96 tzse fbct2 fbct1 td4ym tzbtsi tb7zs default 0 0 0 0 0 0 0 0 bit 0/transmit-side bit 7 zero-suppression enable (tb7zs) 0 = no stuffing occurs 1 = bit 7 forced to a 1 in channels with all 0s bit 1/transmit-side zbtsi support enable (tzbtsi). allows zbtsi information to be input on tlink pin. 0 = zbtsi disabled 1 = zbtsi enabled bit 2/transmit-side d4 yellow alarm select (td4ym) 0 = 0s in bit 2 of all channels 1 = a 1 in the s-bit position of frame 12 bit 3/f-bit corruption type 1 (fbct1). a low-to-high transition of this bit causes the next three consecutive ft (d4 framing mode) or fps (esf framing mode) bits to be co rrupted causing the remote end to experience a loss of synchronization. bit 4/f-bit corruption type 2 (fbct2). setting this bit high enables the corruption of one ft (d4 framing mode) or fps (esf framing mode) bit in every 128 ft or fps bits as long as the bit remains set. bit 5/transmit fdl zero-stuffer enable (tzse). set this bit to 0 if using the internal hdlc controller instead of the legacy support for the fdl. see section 15 for details. 0 = zero stuffer disabled 1 = zero stuffer enabled bit 6/transmit slc-96/fs-bit insertion enable (tslc96). only set this bit to a 1 in d4 framing applications. must be set to 1 to source the fs pattern from the tfdl register. see section 23.6 for details. 0 = slc-96/fs-bit insertion disabled 1 = slc-96/fs-bit insertion enabled bit 7/transmit b8zs enable (tb8zs) 0 = b8zs disabled 1 = b8zs enabled downloaded from: http:///
ds2155 50 of 238 register name: t1ccr1 register description: t1 common control register 1 register address: 07h bit # 7 6 5 4 3 2 1 0 name trai-ci tais-ci tfm pde tloop default 0 0 0 0 0 0 0 0 bit 0/transmit loop-code enable (tloop). see section 25 for details. 0 = transmit data normally 1 = replace normal transmitted data with repeating code as defined in registers tcd1 and tcd2 bit 1/pulse density enforcer enable (pde). the framer always examines the transmit and receive data streams for violations of these, which are required by ansi t1.403: no more than 15 consecutive 0s and at least n 1s in each and every time window of 8 x (n + 1) bits, where n = 1 through 23. violations for the transmit and receive data streams are reported in the info1.6 and info1.7 bits , respectively. when this bit is set to 1, the ds2155 forces the transmitted stream to meet this requirement no matter the content of the transmitted stream. when running b8zs, this bit should be set to 0 since b8zs encoded data streams cannot violate the pulse density requirements. 0 = disable transmit pulse density enforcer 1 = enable transmit pulse density enforcer bit 2/transmit frame mode select (tfm) 0 = d4 framing mode 1 = esf framing mode bit 3/transmit ais-ci enable (tais-ci). setting this bit and the tbl bit (t1tcr1.1) causes the ais-ci code to be transmitted at tposo and tnego, as defined in ansi t1.403. 0 = do not transmit the ais-ci code 1 = transmit the ais-ci code (t1tcr1.1 must also be set = 1) bit 4/transmit rai-ci enable (trai-ci). setting this bit causes the esf rai-ci code to be transmitted in the fdl bit position. 0 = do not transmit the esf rai-ci code 1 = transmit the esf rai-ci code bits 5 to 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 51 of 238 9.2 t1 transmit transparency the software signaling insertion-enab le registers, ssie1Cssie4, can be used to select signaling insertion from the transmit signaling registers, ts1Cts12, on a per-channel basis. setting a bit in the ssiex register allows signaling data to be sourced from the signaling registers for that channel. in transparent mode, bit 7 stuffing and/or robbed-bit signaling is prevented from overwriting the data in the channels. if a ds0 is programmed to be clear, no robbed-bit signaling is inserted nor does the channel have bit 7 stuffing performed. however, in the d4 framing mode, bit 2 is ove rwritten by a 0 when a yellow alarm is transmitted. also, the user has the opt ion to globally override the ssiex registers from determining which channels are to have bit 7 stuffing performed. if the t1tcr1.3 and t1tcr2.0 bits are set to 1, then all 24 t1 channels have bit 7 stuffi ng performed on them, regardless of how the ssiex registers are programmed. in this manner, the ssiex re gisters are only affecting the channels that are to have robbed-bit signaling inserted into them. 9.3 ais-ci and rai-ci generation and detection the ds2155 can transmit and detect the rai-ci a nd ais-ci codes in t1 mode. these codes are compatible with and do not interfere with the standa rd rai (yellow) and ais (blue) alarms. these codes are defined in ansi t1.403. the ais-ci code (alarm indicatio n signal-customer installation) is the same for both esf and d4 operation. setting the tais-ci bit in the t1ccr1 register and the tbl bit in the t1tcr1 register causes the ds2155 to transmit the ais-ci code. the rais-ci status bit in the sr4 register indicates the reception of an ais-ci signal. the rai-ci (remote alarm indication-customer installa tion) code for t1 esf operation is a special form of the esf yellow alarm (an unscheduled message). setting the rais-ci bit in the t1ccr1 register causes the ds2155 to transmit the rai-ci code. the ra i-ci code causes a standard yellow alarm to be detected by the receiver. when the host processor dete cts a yellow alarm, it can then test the alarm for the rai-ci state by checking the boc detector for the rai-ci flag. that flag is a 011111 code in the 6- bit boc message. the rai-ci code for t1 d4 operation is a 10001011 flag in all 24 time slots. to transmit the rai-ci code the host sets all 24 channels to idle w ith a 10001011 idle code. since this code meets the requirements for a standard t1 d4 yellow alarm, th e host can use the receive channel monitor function to detect the 100001011 code whenever a standard yellow alarm is detected. downloaded from: http:///
ds2155 52 of 238 9.4 t1 receive-side digital-milliwatt code generation receive-side digital-milliwatt code generation invol ves using the receive di gital-milliwatt registers (t1rdmr1/2/3) to determine which of the 24 t1 channels of the t1 line going to the backplane should be overwritten with a digital-milliwatt pattern. the di gital-milliwatt code is an 8-byte repeating pattern that represents a 1khz sine wave (1e/0b/0b/1e/9 e/8b/8b/9e). each bit in the t1rdmrx registers represents a particular channel. if a bit is set to a 1, then th e receive data in that channel is replaced with the digital-milliwatt code. if a bit is set to 0, no replacement occurs. register name: t1rdmr1 register description: t1 receive digital-milliwatt enable register 1 register address: 0ch bit # 7 6 5 4 3 2 1 0 name ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive digital-milliwatt enable for channels 1 to 8 (ch1 to ch8) 0 = do not affect the receive data associated with this channel 1 = replace the receive data associated with this channel with digital-milliwatt code register name: t1rdmr2 register description: t1 receive digital-milliwatt enable register 2 register address: 0dh bit # 7 6 5 4 3 2 1 0 name ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive digital-milliwatt enable for channels 9 to 16 (ch9 to ch16) 0 = do not affect the receive data associated with this channel 1 = replace the receive data associated with this channel with digital-milliwatt code register name: t1rdmr3 register description: t1 receive digital-milliwatt enable register 3 register address: 0eh bit # 7 6 5 4 3 2 1 0 name ch24 ch23 ch22 ch 21 ch20 ch19 ch18 ch17 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive digital-milliwatt enable for channels 17 to 24 (ch17 to ch24) 0 = do not affect the receive data associated with this channel 1 = replace the receive data associated with this channel with digital-milliwatt code downloaded from: http:///
ds2155 53 of 238 register name: info1 register description: information register 1 register address: 10h bit # 7 6 5 4 3 2 1 0 name rpdv tpdv cofa 8zd 16zd sefe b8zs fbe default 0 0 0 0 0 0 0 0 bit 0/frame bit-error event (fbe). set when an ft (d4) or fps (esf) framing bit is received in error. bit 1/b8zs codeword detect event (b8zs). set when a b8zs codeword is detected at rpos and rneg independent of whether the b8zs mode is selected or not by t1tcr2.7. useful for automatically setting the line coding. bit 2/severely errored framing event (sefe). set when two out of six framing bits (ft or fps) are received in error. bit 3/sixteen zero-detect event (16zd). set when a string of at least 16 consecutive 0s (regardless of the length of the string) have been received at rposi and rnegi. bit 4/eight zero-detect event (8zd). set when a string of at least eight consecutive 0s (regardless of the length of the string) have been received at rposi and rnegi. bit 5/change-of-frame alignment event (cofa). set when the last resync r esulted in a change-of-frame or multiframe alignment. bit 6/transmit pulse-density violation event (tpdv). set when the transmit data stream does not meet the ansi t1.403 requirements for pulse density. bit 7/receive pulse-density violation event (rpdv). set when the receive data stream does not meet the ansi t1.403 requirements for pulse density. downloaded from: http:///
ds2155 54 of 238 table 9-a. t1 alarm criteria alarm set criteria clear criteria blue alarm (ais) (note 1) when over a 3ms window, five or fewer 0s are received when over a 3ms window, six or more 0s are received yellow alarm (rai) d4 bit 2 mode (t1rcr2.0 = 0) when bit 2 of 256 consecutive channels is set to 0 for at least 254 occurrences when bit 2 of 256 consecutive channels is set to 0 for fewer than 254 occurrences d4 12th f-bit mode (t1rcr2.0 = 1; this mode is also referred to as the japanese yellow alarm) when the 12th framing bit is set to 1 for two consecutive occurrences when the 12th framing bit is set to 0 for two consecutive occurrences esf mode when 16 consecutive patterns of 00ff appear in the fdl when 14 or fewer patterns of 00ff hex out of 16 possible appear in the fdl red alarm (lrcl) (also referred to as loss of signal) when 192 consecutive 0s are received when 14 or more 1s out of 112 possible bit positions are received note 1: the definition of blue alarm (or ais) is an unframed all-ones signal. blue alarm detectors s hould be able to operate properly in the presence of a 10e-3 error rate and they should not falsely tri gger on a framed all-1s signal. blue alarm criteria in the ds2155 has been set to achieve this performance. it is recommended that the rbl bit be qualified with the rlos bit. note 2: ansi specifications use a different nomenclature than the ds2155 does. the following terms are equivalent: rbl = ais rcl = los rlos = lof ryel = rai downloaded from: http:///
ds2155 55 of 238 10. e1 framer/formatter control and status registers the e1 framer portion of the ds2155 is configured by a set of four control re gisters. typically, the control registers are only accessed when the syst em is first powered up. once the ds2155 has been initialized, the control registers need only to be accessed when there is a change in the system configuration. there are two receive control registers (e1rcr1 and e1rcr2) and two transmit control registers (e1tcr1 and e1tcr2). there are also four status and informati on registers. each of these eight registers is describe d in this section. 10.1 e1 control registers register name: e1rcr1 register description: e1 receive control register 1 register address: 33h bit # 7 6 5 4 3 2 1 0 name rserc rsigm rhdb3 rg802 rcrc4 frc synce resync default 0 0 0 0 0 0 0 0 bit 0/resync (resync). when toggled from low to high, a resync is initiated. must be cleared and set again for a subsequent resync. bit 1/sync enable (synce) 0 = auto resync enabled 1 = auto resync disabled bit 2/frame resync criteria (frc) 0 = resync if fas received in error three consecutive times 1 = resync if fas or bit 2 of non-fas is received in error three consecutive times bit 3/receive crc4 enable (rcrc4) 0 = crc4 disabled 1 = crc4 enabled bit 4/receive g.802 enable (rg802). see section 17 for details. 0 = do not force rchblk high during bit 1 of time slot 26 1 = force rchblk high during bit 1 of time slot 26 bit 5/receive hdb3 enable (rhdb3) 0 = hdb3 disabled 1 = hdb3 enabled bit 6/receive signaling mode select (rsigm) 0 = cas signaling mode 1 = ccs signaling mode bit 7/rser control (rserc) 0 = allow rser to output data as received under all conditions 1 = force rser to 1 under loss-of-frame alignment conditions downloaded from: http:///
ds2155 56 of 238 table 10-a. e1 sync/resync criteria frame or multiframe level sync criteria resync criteria itu spec. fas fas present in frame n and n + 2; fas not present in frame n + 1 three consecutive incorrect fas received alternate: (e1rcr1.2 = 1) the above criteria is met or three consecutive incorrect bit 2 of non-fas received g.706 4.1.1 4.1.2 crc4 two valid mf alignment words found within 8ms 915 or more crc4 codewords out of 1000 received in error g.706 4.2 and 4.3.2 cas valid mf alignment word found and previous time slot 16 contains code other than all 0s two consecutive mf alignment words received in error g.732 5.2 register name: e1rcr2 register description: e1 receive control register 2 register address: 34h bit # 7 6 5 4 3 2 1 0 name sa8s sa7s sa6s sa5s sa4s rcla default 0 0 0 0 0 0 0 0 bit 0/receive carrier-loss (rcl) alternate criteria (rcla). defines the criteria for a receive carrier-loss condition for both the framer and liu. 0 = rcl declared upon 255 consecutive 0s (125s) 1 = rcl declared upon 2048 consecutive 0s (1ms) bits 1, 2/unused, must be set to 0 for proper operation bit 3/sa4 bit select (sa4s). set to 1 to have rlclk pulse at the sa4 bit position; set to 0 to force rlclk low during sa4 bit position. see section 35 for details. bit 4/sa5 bit select (sa5s). set to 1 to have rlclk pulse at the sa5 bit position; set to 0 to force rlclk low during sa5 bit position. see section 35 for details. bit 5/sa6 bit select (sa6s). set to 1 to have rlclk pulse at the sa6 bit position; set to 0 to force rlclk low during sa6 bit position. see section 35 for details. bit 6/sa7 bit select (sa7s). set to 1 to have rlclk pulse at the sa7 bit position; set to 0 to force rlclk low during sa7 bit position. see section 35 for details. bit 7/sa8 bit select (sa8s). set to 1 to have rlclk pulse at the sa8 bit position; set to 0 to force rlclk low during sa8 bit position. see section 35 for details. downloaded from: http:///
ds2155 57 of 238 register name: e1tcr1 register description: e1 transmit control register 1 register address: 35h bit # 7 6 5 4 3 2 1 0 name tfpt t16s tua1 tsis tsa1 thdb3 tg802 tcrc4 default 0 0 0 0 0 0 0 0 bit 0/transmit crc4 enable (tcrc4) 0 = crc4 disabled 1 = crc4 enabled bit 1/transmit g.802 enable (tg802). see section 35 for details. 0 = do not force tchblk high during bit 1 of time slot 26 1 = force tchblk high during bit 1 of time slot 26 bit 2/transmit hdb3 enable (thdb3) 0 = hdb3 disabled 1 = hdb3 enabled bit 3/transmit signaling all ones (tsa1) 0 = normal operation 1 = force time slot 16 in every frame to all ones bit 4/transmit international bit select (tsis) 0 = sample si bits at tser pin 1 = source si bits from taf and tnaf registers (in this mode, e1tcr1.7 must be set to 0) bit 5/transmit unframed all ones (tua1) 0 = transmit data normally 1 = transmit an unframed all-ones code at tposo and tnego bit 6/transmit time slot 16 data select (t16s). see section 16.2 for details. 0 = time slot 16 determined by the ssiex registers and the thscs function in the pcpr register 1 = source time slot 16 from ts1 to ts16 registers bit 7/transmit time slot 0 pass-through (tfpt) 0 = fas bits/sa bits/remote alarm sourced in ternally from the taf and tnaf registers 1 = fas bits/sa bits/remote alarm sourced from tser downloaded from: http:///
ds2155 58 of 238 register name: e1tcr2 register description: e1 transmit control register 2 register address: 36h bit # 7 6 5 4 3 2 1 0 name sa8s sa7s sa6s sa5s sa4s aebe aais ara default 0 0 0 0 0 0 0 0 bit 0/automatic remote alarm generation (ara) 0 = disabled 1 = enabled bit 1/automatic ais generation (aais) 0 = disabled 1 = enabled bit 2/automatic e-bit enable (aebe) 0 = e-bits not automatically set in the transmit direction 1 = e-bits automatically set in the transmit direction bit 3/sa4 bit select (sa4s). set to 1 to source the sa4 bit from the tlink pin; set to 0 to not source the sa4 bit. see section 35 for details. bit 4/sa5 bit select (sa5s). set to 1 to source the sa5 bit from the tlink pin; set to 0 to not source the sa5 bit. see section 35 for details. bit 5/sa6 bit select (sa6s). set to 1 to source the sa6 bit from the tlink pin; set to 0 to not source the sa6 bit. see section 35 for details. bit 6/sa7 bit select (sa7s). set to 1 to source the sa7 bit from the tlink pin; set to 0 to not source the sa7 bit. see section 35 for details. bit 7/sa8 bit select (sa8s). set to 1 to source the sa8 bit from the tlink pin; set to 0 to not source the sa8 bit. see section 35 for details. downloaded from: http:///
ds2155 59 of 238 10.2 automatic alarm generation the device can be programmed to automatically tran smit ais or remote alarm. when automatic ais generation is enabled (e1tcr2.1 = 1), the device monitors the receive-sid e framer to determine if any of the following conditions are present: loss-of-rece ive frame synchronization, ais alarm (all ones) reception, or loss-of-receive carrier (o r signal). the framer forces either an ais or remote alarm if any one or more of these conditions is present. when automatic rai generation is enabled (e1tcr2.0 = 1), the framer monitors the receive side to determine if any of the following conditions are present: loss-of-r eceive-frame synchronization, ais alarm (all ones) reception, loss-of-recei ve carrier (or signal) , or if crc4 multiframe synchronization cannot be found within 128ms of fas synchronization (i f crc4 is enabled). if any one or more of these conditions is present, then the framer transmits an rai alarm. rai generation conforms to ets 300 011 specifications and a constant remote alarm is transmitted if the ds2155 cannot find crc4 multiframe synchronization within 400ms as per g.706. note: it is an invalid state to have both automatic ais generation and automatic remote alarm generation enabled at the same time. downloaded from: http:///
ds2155 60 of 238 10.3 e1 information registers register name: info3 register description: information register 3 register address: 12h bit # 7 6 5 4 3 2 1 0 name crcrc fasrc casrc default 0 0 0 0 0 0 0 0 bit 0/cas resync criteria met event (casrc). set when two consecutive cas mf alignment words are received in error. bit 1/fas resync criteria met event (fasrc). set when three consecutive fas words are received in error. note: during a crc resync the fas synchronizer is brought online to verify the fas alignment. if during this process an fas emulator exists, the fas synchronizer may temporarily align to the emulator. the fasrc will go active indicating a search for a valid fas has been activated. bit 2/crc resync criteria met event (crcrc). set when 915/1000 codewords are received in error. register name: info7 register description: information register 7 (real-time, non-latched register) register address: 30h bit # 7 6 5 4 3 2 1 0 name csc5 csc4 csc3 csc2 csc0 fassa cassa crc4sa default 0 0 0 0 0 0 0 0 bit 0/crc4 mf sync active (crc4sa). set while the synchronizer is searching for the crc4 mf alignment word. this is a read-only, non-latched, real-time bit. it is not necessary to precede the read of this bit with a write. bit 1/cas mf sync active (cassa). set while the synchronizer is searching for the cas mf alignment word. this is a read-only, non-latched, real-time bit. it is not necessary to precede the read of this bit with a write. bit 2/fas sync active (fassa). set while the synchronizer is searching for alignment at the fas level. this is a read-only, non-latched, real-time bit. it is not n ecessary to precede the read of this bit with a write. bits 3 to 7/crc4 sync counter bits (csc0, csc2 to csc4). the crc4 sync counter increments each time the 8ms crc4 multiframe search times out. the counter is cleared when the framer has successfully obtained synchronization at the crc4 level. the counter can also be cleared by disabling the crc4 mode (e1rcr1.3 = 0). this counter is useful for determining the amount of tim e the framer has been searching for synchronization at the crc4 level. itu g.706 suggests that if synchronization at the crc4 level cannot be obtained within 400ms, then the search should be abandoned and proper action taken. th e crc4 sync counter rolls over. csc0 is the lsb of the 6-bit counter. (note: the bit next to lsb is not accessible. csc1 is omitted to allow resolution to >400ms using 5 bits.) these are read-only, non-latched, real-time b its. it is not necessary to pr ecede the read of these bits with a write. downloaded from: http:///
ds2155 61 of 238 table 10-b. e1 alarm criteria alarm set criteria clear criteria itu specification rlos an rlos condition exists on power-up prior to initial synchronization, when a resync criteria has been met, or when a manual resync has been initiated by e1rcr1.0 rcl 255 or 2048 consecutive 0s received as determined by e1rcr2.0 at least 32 1s in 255-bit times are received g.775/g.962 rra bit 3 of nonalign frame set to 1 for three consecutive occasions bit 3 of nonalign frame set to 0 for three consecutive occasions o.162 2.1.4 rua1 fewer than three 0s in two frames (512 bits) more than two 0s in two frames (512 bits) o.162 1.6.1.2 rdma bit 6 of time slot 16 in frame 0 has been set for two consecutive multiframes v52lnk two out of three sa7 bits are 0 g.965 downloaded from: http:///
ds2155 62 of 238 11. common control and status registers register name: ccr1 register description: common control register 1 register address: 70h bit # 7 6 5 4 3 2 1 0 name mclks crc4r sie odm dicai tcss1 tcss0 rlosf default 0 0 0 0 0 0 0 0 bit 0/function of the rlos/lotc output (rlosf) 0 = receive loss of sync (rlos) 1 = loss-of-transmit clock (lotc) bit 1/transmit clock source select bit 0 (tcss0) bit 2/transmit clock source select bit 0 (tcss1) tcss1 tcss0 transmit clock source 0 0 the tclk pin is always the source of transmit clock. 0 1 switch to the clock present at rclk when the signal at the tclk pin fails to transition after 1 channel time. 1 0 use the scaled signal present at mclk as the transmit clock. the tclk pin is ignored. 1 1 use the signal present at rclk as the transmit clock. the tclk pin is ignored. bit 3/disable idle code auto increment (dicai). selects/deselects the auto-increment feature for the transmit and receive idle code array address register. see section 17 . 0 = addresses in iaar register automatically increment on every read/write operation to the pcicr register 1 = addresses in iaar register do not automatically increment bit 4/output data mode (odm) 0 = pulses at tposo and tnego are one full tclko period wide 1 = pulses at tposo and tnego are one-half tclko period wide bit 5/signaling integration enable (sie) 0 = signaling changes of state reporte d on any change in selected channels 1 = signaling must be stable for three multiframes in order for a change of state to be reported bit 6/crc-4 recalculate (crc4r) 0 = transmit crc-4 generation and insertion operates in normal mode 1 = transmit crc-4 generation operates according to g.706 intermediate path recalculation method bit 7/mclk source (mclks). selects the source of mclk 0 = mclk is source from the mclk pin 1 = mclk is source from the tsysclk pin downloaded from: http:///
ds2155 63 of 238 register name: idr register description: device identification register register address: 0fh bit # 7 6 5 4 3 2 1 0 name id7 id6 id5 id4 id3 id2 id1 id0 default 1 0 1 1 x x x x bits 0 to 3/chip revision bits (id0 to id3). the lower four bits of the idr are used to display the die revision of the chip. ido is the lsb of a decimal co de that represents the chip revision. bits 4 to 7/device id (id4 to id7). the upper four bits of the idr are used to display the ds2155 id. 11.1 t1/e1 status registers register name: sr2 register description: status register 2 register address: 18h bit # 7 6 5 4 3 2 1 0 name ryelc rua1c frclc rlosc ryel rua1 frcl rlos default 0 0 0 0 0 0 0 0 bit 0/receive loss-of-sync condition (rlos). set when the ds2155 is not synchronized to the received data stream. bit 1/framer receive carrier-loss condition (frcl). set when 255 (or 2048 if e1rcr2.0 = 1) e1 mode or 192 t1 mode consecutive 0s have been detected at rposi and rnegi. bit 2/receive unframed all-ones (t1 blue alarm, e1 ais) condition (rua1). set when an unframed all 1s code is received at rposi and rnegi. bit 3/receive yellow alarm condition (ryel) (t1 only). set when a yellow alarm is received at rposi and rnegi. bit 4/receive loss-of-sync clear event (rlosc). set when the framer achieves synchronization; remains set until read. bit 5/framer receive carrier-loss clear event (frclc). set when the carrier loss condition at rposi and rnegi is no longer detected. bit 6/receive unframed all-ones clear event (rua1c). set when the unframed all 1s condition is no longer detected. bit 7/receive yellow alarm clear event (ryelc) (t1 only). set when the receive yellow alarm condition is no longer detected. downloaded from: http:///
ds2155 64 of 238 register name: imr2 register description: interrupt mask register 2 register address: 19h bit # 7 6 5 4 3 2 1 0 name ryelc rua1c frclc rlosc ryel rua1 frcl rlos default 0 0 0 0 0 0 0 0 bit 0/receive loss-of-sync condition (rlos) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising edge only bit 1/framer receive carrier loss condition (frcl) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising edge only bit 2/receive unframed all-ones (blue alarm) condition (rua1) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising edge only bit 3/receive yellow alarm condition (ryel) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising edge only bit 4/receive loss-of-sync clear event (rlosc) 0 = interrupt masked 1 = interrupt enabled bit 5/framer receive carrier loss condition clear (frclc) 0 = interrupt masked 1 = interrupt enabled bit 6/receive unframed all-ones condition clear event (rua1c) 0 = interrupt masked 1 = interrupt enabled bit 7/receive yellow alarm clear event (ryelc) 0 = interrupt masked 1 = interrupt enabled downloaded from: http:///
ds2155 65 of 238 register name: sr3 register description: status register 3 register address: 1ah bit # 7 6 5 4 3 2 1 0 name lspare ldn lup lotc lorc v52lnk rdma rra default 0 0 0 0 0 0 0 0 bit 0/receive remote alarm condition (rra) (e1 only). set when a remote alarm is received at rposi and rnegi. this is a double interrupt bit. see section 6.3 . bit 1/receive distant mf alarm condition (rdma) (e1 only). set when bit 6 of time slot 16 in frame 0 has been set for two consecutive multiframes. this alarm is not disabled in the ccs signaling mode. this is a double interrupt bit. see section 6.3 . bit 2/v5.2 link detected condition (v52lnk) (e1 only). set on detection of a v5.2 link identification signal (g.965). this is a double interrupt bit. see section 6.3 . bit 3/loss-of-receive clock condition (lorc). set when the rclki pin has not transitioned for one channel time. this is a double interrupt bit. see section 6.3 . bit 4/loss-of-transmit clock condition (lotc). set when the tclk pin has not transitioned for one channel time. forces the lotc pin high if enabled by ccr1.0 . this is a double interrupt bit. see section 6.3 . bit 5/loop-up code detected condition (lup) (t1 only). set when the loop-up code as defined in the rupcd1/2 register is being received. see section 25 for details. this is a double interrupt bit. see section 6.3 . bit 6/loop-down code detected condition (ldn) (t1 only). set when the loop down code as defined in the rdncd1/2 register is being received. see section 25 for details. this is a double interrupt bit. see section 6.3 . bit 7/spare code detected condition (lspare) (t1 only). set when the spare code as defined in the rscd1/2 registers is being received. see section 25 for details. this is a double interrupt bit. see section 6.3 . downloaded from: http:///
ds2155 66 of 238 register name: imr3 register description: interrupt mask register 3 register address: 1bh bit # 7 6 5 4 3 2 1 0 name lspare ldn lup lotc lorc v52lnk rdma rra default 0 0 0 0 0 0 0 0 bit 0/receive remote alarm condition (rra) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges bit 1/receive distant mf alarm condition (rdma) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges bit 2/v5.2 link detected condition (v52lnk) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges bit 3/loss-of-receive clock condition (lorc) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges bit 4/loss-of-transmit clock condition (lotc) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges bit 5/loop-up code-detected condition (lup) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges bit 6/loop-down code-detected condition (ldn) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges bit 7/spare code detected condition (lspare) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges downloaded from: http:///
ds2155 67 of 238 register name: sr4 register description: status register 4 register address: 1ch bit # 7 6 5 4 3 2 1 0 name rais-ci rsao rsaz tmf taf rmf rcmf raf default 0 0 0 0 0 0 0 0 bit 0/receive align frame event (raf) (e1 only). set every 250s at the beginning of align frames. used to alert the host that si and sa bits are available in the raf and rnaf registers. bit 1/receive crc4 multiframe event (rcmf) (e1 only). set on crc4 multiframe boundaries; continues to set every 2ms on an arbitrary boundary if crc4 is disabled. bit 2/receive multiframe event (rmf) e1 mode: set every 2ms (regardless if cas signaling is enabled or not) on receive multiframe boundaries. used to alert the host that signaling data is available. t1 mode: set every 1.5ms on d4 mf boundaries or every 3ms on esf mf boundaries. bit 3/transmit align frame event (taf) (e1 only). set every 250s at the beginning of align frames. used to alert the host that the taf and tnaf registers need to be updated. bit 4/transmit multiframe event (tmf) e1 mode: set every 2ms (regardless if crc4 is enab led) on transmit multiframe boundaries. used to alert the host that signaling data needs to be updated. t1 mode: set every 1.5ms on d4 mf boundaries or every 3ms on esf mf boundaries. bit 5/receive signaling all-zeros event (rsaz) (e1 only). set when over a full mf, time slot 16 contains all 0s. bit 6/receive signaling all-ones event (rsao) (e1 only). set when the contents of time slot 16 contains fewer than three 0s over 16 consecutive frames. this al arm is not disabled in the ccs signaling mode. bit 7/receive ais-ci event (rais-ci) (t1 only). set when the receiver detects the ais-ci pattern as defined in ansi t1.403. downloaded from: http:///
ds2155 68 of 238 register name: imr4 register description: interrupt mask register 4 register address: 1dh bit # 7 6 5 4 3 2 1 0 name rais-ci rsao rsaz tmf taf rmf rcmf raf default 0 0 0 0 0 0 0 0 bit 0/receive align frame event (raf) 0 = interrupt masked 1 = interrupt enabled bit 1/receive crc4 multiframe event (rcmf) 0 = interrupt masked 1 = interrupt enabled bit 2/receive multiframe event (rmf) 0 = interrupt masked 1 = interrupt enabled bit 3/transmit align frame event (taf) 0 = interrupt masked 1 = interrupt enabled bit 4/transmit multiframe event (tmf) 0 = interrupt masked 1 = interrupt enabled bit 5/receive signaling all-zeros event (rsaz) 0 = interrupt masked 1 = interrupt enabled bit 6/receive signaling all-ones event (rsao) 0 = interrupt masked 1 = interrupt enabled bit 7/receive ais-ci event (rais-ci) 0 = interrupt masked 1 = interrupt enabled downloaded from: http:///
ds2155 69 of 238 12. i/o pin configuration options register name: iocr1 register description: i/o configuration register 1 register address: 01h bit # 7 6 5 4 3 2 1 0 name rsms rsms2 rsms1 rsio tsdw tsm tsio odf default 0 0 0 0 0 0 0 0 bit 0/output data format (odf) 0 = bipolar data at tposo and tnego 1 = nrz data at tposo; tnego = 0 bit 1/tsync i/o select (tsio) 0 = tsync is an input 1 = tsync is an output bit 2/tsync mode select (tsm). selects frame or multiframe mode for the tsync pin. see the timing diagrams in section 35 . 0 = frame mode 1 = multiframe mode bit 3/tsync double-wide (tsdw). (note: this bit must be set to 0 when iocr1.2 = 1 or when iocr1.1 = 0.) 0 = do not pulse double-wide in signaling frames 1 = do pulse double-wide in signaling frames bit 4/rsync i/o select (rsio). (note: this bit must be set to 0 when escr.0 = 0.) 0 = rsync is an output 1 = rsync is an input (only valid if elastic store enabled) bit 5/rsync mode select 1(rsms1). selects frame or multiframe pulse when rsync pin is in output mode. in input mode (elastic store must be enabled), multiframe mode is only useful when re ceive signaling reinsertion is enabled. see the timing diagrams in section 35 . 0 = frame mode 1 = multiframe mode bit 6/rsync mode select 2 (rsms2) t1 mode: rsync pin must be programmed in the output frame mode (iocr1.5 = 0, iocr1.4 = 0). 0 = do not pulse double-wide in signaling frames 1 = do pulse double-wide in signaling frames e1 mode: rsync pin must be programmed in the output multiframe mode (iocr1.5 = 1, iocr1.4 = 0). 0 = rsync outputs cas multiframe boundaries 1 = rsync outputs crc4 multiframe boundaries bit 7/rsync multiframe skip control (rsms). useful in framing format conversions from d4 to esf. this function is not available when the recei ve-side elastic store is enabled. rs ync must be set to output multiframe pulses (iocr1.5 = 1 and iocr1.4 = 0). 0 = rsync outputs a pulse at every multiframe 1 = rsync outputs a pulse at every other multiframe downloaded from: http:///
ds2155 70 of 238 register name: iocr2 register description: i/o configuration register 2 register address: 02h bit # 7 6 5 4 3 2 1 0 name rclkinv tclkinv rsyncinv tsyncinv tssyncinv h100en tsclkm rsclkm default 0 0 0 0 0 0 0 0 bit 0/rsysclk mode select (rsclkm) 0 = if rsysclk is 1.544mhz 1 = if rsysclk is 2.048mhz or ibo enabled (see section 28 for details on ibo function.) bit 1/tsysclk mode select (tsclkm) 0 = if tsysclk is 1.544mhz 1 = if tsysclk is 2.048mhz or ibo enabled (see section 28 for details on ibo function.) bit 2/h.100 sync mode (h100en) 0 = normal operation 1 = sync shift bit 3/tssync invert (tssyncinv) 0 = no inversion 1 = invert bit 4/tsync invert (tsyncinv) 0 = no inversion 1 = invert bit 5/rsync invert (rsyncinv) 0 = no inversion 1 = invert bit 6/tclk invert (tclkinv) 0 = no inversion 1 = invert bit 7/rclk invert (rclkinv) 0 = no inversion 1 = invert downloaded from: http:///
ds2155 71 of 238 13. loopback configuration register name: lbcr register description: loopback control register register address: 4ah bit # 7 6 5 4 3 2 1 0 name liuc llb rlb plb flb default 0 0 0 0 0 0 0 0 bit 0/framer loopback (flb). this loopback is useful in testing and debugging applications. in flb, the ds2155 loops data from the transmit side back to the recei ve side. when flb is enabled, the following occurs: 1) t1 mode: an unframed all-ones code is transmitted at tposo and tnego. e1 mode: normal data is transmitted at tposo and tnego. 2) data at rposi and rnegi is ignored. 3) all receive-side signals take on timing synchronous with tclk instead of rclki. please note that it is not acceptable to have rclk conn ected to tclk during this loopback because this causes an unstable condition. 0 = loopback disabled 1 = loopback enabled bit 1/payload loopback (plb). when plb is enabled, the following occurs: 1) data is transmitted from the tposo and tnego pi ns synchronous with rclk instead of tclk. 2) all the receive side signals continue to operate normally. 3) data at the tser, tdata, and tsig pins is ignored. 4) the tlclk signal becomes synchronous with rclk instead of tclk. 0 = loopback disabled 1 = loopback enabled t1 mode. normally, this loopback is only enabled when esf framing is being performed but can also be enabled in d4 framing applications. in a plb situat ion, the ds2155 loops the 192 bits of payload data (with bpvs corrected) from the re ceive section back to the transmit section. the fps framing pattern, crc6 calculation, and the fdl bits are not loope d back; they are reinserted by the ds2155. e1 mode. in a plb situation, the ds2155 loops the 248 bits of payload data (with bpvs corrected) from the receive section back to the transmit section. the transmit section modifies the payload as if it was input at tser. the fas word; si, sa, and e bits; and crc4 are not looped back; they are reinserted by the ds2155. bit 2/remote loopback (rlb) . in this loopback, data input by the rposi and rnegi pins is transmitted back to the tposo and tnego pins. data continues to pass through the receive-side framer of the ds2155 as it would normally. data from the transmit-side formatter is ignored. see figure 3-1 for more details. 0 = loopback disabled 1 = loopback enabled downloaded from: http:///
ds2155 72 of 238 bit 3/local loopback (llb). in this loopback, data continues to be transmitted as normal through the transmit side of the sct. data being received at rtip and rring ar e replaced with the data being transmitted. data in this loopback passes through the jitter attenuator. see figure 3-2 for more details. 0 = loopback disabled 1 = loopback enabled bit 4/line interface unit mux control (liuc). this is a software version of the liuc pin. when the liuc pin is connected high, the liuc bit has control. when th e liuc pin is connected low, the framer and liu are separated and the liuc bit has no effect 0 = if liuc pin connected high, liu internally connected to framer block and deactivate the tposi/tnegi/tclki/rposi/rnegi/rclki pins 1 = if liuc pin connected high, disconnect liu from framer block and activate the tposi/tnegi/tclki/rposi/rnegi/rclki pins liuc pin liuc bit condition 0 0 liu and framer separated 0 1 liu and framer separated 1 0 liu and framer connected 1 1 liu and framer separated bits 5 to 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 73 of 238 13.1 per-channel loopback the per-channel loopback registers (pclrs) determin e which channels (if any) from the backplane should be replaced with the data from th e receive side or, i.e., off of the t1 or e1 line. if this loopback is enabled, then transmit and receive clocks and fr ame syncs must be synchronized. one method to accomplish this is to connect rclk to tclk and rfsync to tsync. there are no restrictions on which channels can be looped back or on how many channels can be looped back. each of the bit positions in the per-channel loopback registers (pclr1/pclr2/pclr3/pclr4) represents a ds0 channel in the outgoing frame. when these bits ar e set to a 1, data from the corresponding receive channel replaces the data on tser for that channel. register name: pclr1 register description: per-channel loopback enable register 1 register address: 4bh bit # 7 6 5 4 3 2 1 0 name ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 default 0 0 0 0 0 0 0 0 bits 0 to 7/per-channel loopback enab le for channels 1 to 8 (ch1 to ch8) 0 = loopback disabled 1 = enable loopback; source data from the corresponding receive channel register name: pclr2 register description: per-channel loopback enable register 2 register address: 4ch bit # 7 6 5 4 3 2 1 0 name ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 default 0 0 0 0 0 0 0 0 bits 0 to 7/per-channel loopback enab le for channels 9 to 16 (ch9 to ch16) 0 = loopback disabled 1 = enable loopback; source data from the corresponding receive channel downloaded from: http:///
ds2155 74 of 238 register name: pclr3 register description: per-channel loopback enable register 3 register address: 4dh bit # 7 6 5 4 3 2 1 0 name ch24 ch23 ch22 ch 21 ch20 ch19 ch18 ch17 default 0 0 0 0 0 0 0 0 bits 0 to 7/per-channel loopback enable for channels 17 to 24 (ch17 to ch24) 0 = loopback disabled 1 = enable loopback; source data from the corresponding receive channel register name: pclr4 register description: per-channel loopback enable register 4 register address: 4eh bit # 7 6 5 4 3 2 1 0 name ch32 ch31 ch30 ch 29 ch28 ch27 ch26 ch25 default 0 0 0 0 0 0 0 0 bits 0 to 7/per-channel loopback enable for channels 25 to 32 (ch25 to ch32) 0 = loopback disabled 1 = enable loopback; source data from the corresponding receive channel downloaded from: http:///
ds2155 75 of 238 14. error count registers the ds2155 contains four counters that are used to accumulate line-coding er rors, path errors, and synchronization errors. counter update options incl ude one-second boundaries, 42ms (t1 mode only), 62ms (e1 mode only), or manual. see error-counter configuration register (ercnt) . when updated automatically, the user can use the interrupt from the tim er to determine when to read these registers. all four counters saturate at their re spective maximum counts, and they do not roll over. note: only the line- code violation count regist er has the potential to overflow, but th e bit error would have to exceed 10e-2 before this would occur. register name: ercnt register description: error-counter configuration register register address: 41h bit # 7 6 5 4 3 2 1 0 name mecu ecus eams vcrfs fsbe moscrf lcvcrf default 0 0 0 0 0 0 0 0 bit 0/t1 line-code violation count register function select (lcvcrf) 0 = do not count excessive 0s 1 = count excessive 0s bit 1/multiframe out-of-sync count register function select (moscrf) 0 = count errors in the framing bit position 1 = count the number of multiframes out-of-sync bit 2/pcvcr fs-bit error-report enable (fsbe) 0 = do not report bit errors in fs-bit position; only ft-bit position 1 = report bit errors in fs-bit position as well as ft-bit position bit 3/e1 line-code violation count register function select (vcrfs) 0 = count bipolar violations (bpvs) 1 = count code violations (cvs) bit 4/error-accumulation mode select (eams) 0 = ercnt.5 determines accumulation time 1 = ercnt.6 determines accumulation time bit 5/error-counter update select (ecus) t1 mode: 0 = update error counters once a second 1 = update error counters every 42ms (333 frames) e1 mode: 0 = update error counters once a second 1 = update error counters every 62.5ms (500 frames) bit 6/manual error-counter update (mecu). when enabled by ercnt.4, the changing of this bit from a 0 to a 1 allows the next clock cycle to load the error-counter registers with the latest counts and reset the counters. the user must wait a minimum of 1.5 rclk clock periods before reading the error count registers to allow for proper update. bit 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 76 of 238 14.1 line-code violation count register (lcvcr) 14.1.1 t1 operation t1 code violations are defined as bi polar violations (bpvs) or excessive 0s. if the b8zs mode is set for the receive side, then b8zs codewords are not counted. this counter is always en abled; it is not disabled during receive loss-of-synchroni zation (rlos = 1) conditions. table 14-a shows what the lcvcrs count. table 14-a. t1 line code violation counting options count excessive zeros? (ercnt.0) b8zs enabled? (t1rcr2.5) counted in the lcvcrs no no bpvs yes no bpvs + 16 consecutive 0s no yes bpvs (b8zs codewords not counted) yes yes bpvs + 8 consecutive 0s 14.1.2 e1 operation either bipolar violations or code violations can be counte d. bipolar violations are defined as consecutive marks of the same polarity. in this mode, if the hdb3 mode is set for the receive side, then hdb3 codewords are not counted as bpvs. if ercnt.3 is se t, then the lvc counts code violations as defined in itu o.161. code violations are defi ned as consecutive bipolar violations of the same polarity. in most applications, the framer should be programmed to c ount bpvs when receiving ami code and to count cvs when receiving hdb3 code. this counter increments at all times and is not disabled by loss-of-sync conditions. the counter saturates at 65,535 and does not roll over. the bit- error rate on an e1 line would have to be greater than 10 -2 before the vcr would saturate ( table 14-b ). table 14-b. e1 line-code violation counting options e1 code violation select (ercnt.3) counted in the lcvcrs 0 bpvs 1 cvs downloaded from: http:///
ds2155 77 of 238 register name: lcvcr1 register description: line-code violation count register 1 register address: 42h bit # 7 6 5 4 3 2 1 0 name lcvc15 lcvc14 lcvc13 lcvc 12 lcvc11 lcvc10 lcvc9 lccv8 default 0 0 0 0 0 0 0 0 bits 0 to 7/line-code violation counter bits 8 to 15 (lcvc8 to lcvc15). lcv15 is the msb of the 16-bit code violation count. register name: lcvcr2 register description: line-code violation count register 2 register address: 43h bit # 7 6 5 4 3 2 1 0 name lcvc7 lcvc6 lcvc5 lcvc4 lcvc3 lcvc2 lcvc1 lcvc0 default 0 0 0 0 0 0 0 0 bits 0 to 7/line-code violation counter bits 0 to 7 (lcvc0 to lcvc7). lcv0 is the lsb of the 16-bit code violation count. downloaded from: http:///
ds2155 78 of 238 14.2 path code violation count register (pcvcr) 14.2.1 t1 operation the path code violation count regist er records ft, fs, or crc6 errors in t1 frames. when the receive side of a framer is set to operate in the t1 esf framing mode, pcvcr reco rds errors in the crc6 codewords. when set to operate in the t1 d4 framing mode , pcvcr counts errors in the ft framing bit position. through the ercnt.2 bit, a framer can be programmed to also report errors in the fs framing bit position. the pcvcr is disabled during receive loss-of-synchronization (r los = 1) conditions. table 14-c shows what errors the pcvcr counts. table 14-c. t1 path code violation counting arrangements framing mode count fs errors? counted in the pcvcrs d4 no errors in the ft pattern d4 yes errors in both the ft and fs patterns esf dont care errors in the crc6 codewords 14.2.2 e1 operation the path code violation-count register records crc4 errors. since the maximum crc4 count in a one- second period is 1000, this counter cannot saturate. the counter is disabl ed during loss-of-sync at either the fas or crc4 level; it continues to count if lo ss-of-multiframe sync occurs at the cas level. path code violation-count register 1 (pcvcr1) is the most significant word and pcvcr2 is the least significant word of a 16-bit counter th at records path violations (pvs). register name: pcvcr1 register description: path code violation count register 1 register address: 44h bit # 7 6 5 4 3 2 1 0 name pcvc15 pcvc14 pcvc13 pcvc 12 pcvc11 pcvc10 pcvc9 pcvc8 default 0 0 0 0 0 0 0 0 bits 0 to 7/path code violation counter bits 8 to 15 (pcvc8 to pcvc15). pcvc15 is the msb of the 16-bit path code violation count. register name: pcvcr2 register description: path code violation count register 2 register address: 45h bit # 7 6 5 4 3 2 1 0 name pcvc7 pcvc6 pcvc5 pcvc4 pcvc3 pcvc2 pcvc1 pcvc0 default 0 0 0 0 0 0 0 0 bits 0 to 7/path code violation counter bits 0 to 7 (pcvc0 to pcvc7). pcvc0 is the lsb of the 16-bit path code violation count. downloaded from: http:///
ds2155 79 of 238 14.3 frames out-of-sync count register (foscr) 14.3.1 t1 operation the foscr is used to count the numb er of multiframes that the receive synchronizer is out of sync. this number is useful in esf applicati ons needing to measure the paramete rs loss-of-frame count (lofc) and esf error events as described in at&t publicat ion tr54016. when the foscr is operated in this mode, it is not disabled during re ceive loss-of-synchronization (rlos = 1) conditions. the foscr has an alternate operating mode whereby it counts either erro rs in the ft framing pattern (in the d4 mode) or errors in the fps framing pattern (in the esf mode). when the foscr is operated in this mode, it is disabled during receive loss-of-syn chronization (rlos = 1) conditions. table 14-d shows what the foscr is capable of counting. table 14-d. t1 frames out-of-sync counting arrangements framing mode (t1rcr1.3) count mos or f-bit errors (ercnt.1) counted in the foscrs d4 mos number of multiframes out-of-sync d4 f-bit errors in the ft pattern esf mos number of multiframes out-of-sync esf f-bit errors in the fps pattern 14.3.2 e1 operation the foscr counts word errors in the fas in time slot 0. this counter is disabled when rlos is high. fas errors are not counted when the framer is s earching for fas alignment and/or synchronization at either the cas or crc4 multiframe level. since th e maximum fas word error count in a one-second period is 4000, this counter cannot saturate. the frames out-of-sync count regist er 1 (foscr1) is the most significa nt word and foscr2 is the least significant word of a 16-bit counter that records frames out-of-sync. register name: foscr1 register description: frames out-of-sync count register 1 register address: 46h bit # 7 6 5 4 3 2 1 0 name fos15 fos14 fos13 fos 12 fos11 fos10 fos9 fos8 default 0 0 0 0 0 0 0 0 bits 0 to 7/frames out-of-sync counter bits 8 to 15 (fos8 to fos15). fos15 is the msb of the 16-bit frames out-of-sync count. register name: foscr2 register description: frames out-of-sync count register 2 register address: 47h bit # 7 6 5 4 3 2 1 0 name fos7 fos6 fos5 fos4 fos3 fos2 fos1 fos0 default 0 0 0 0 0 0 0 0 bits 0 to 7/frames out-of-sync counter bits 0 to 7 (fos0 to fos7). fos0 is the lsb of the 16-bit frames out- of-sync count. downloaded from: http:///
ds2155 80 of 238 14.4 e-bit counter (ebcr) this counter is only available in e1 mode. e-bit count register 1 (e bcr1) is the most significant word and ebcr2 is the least significant wo rd of a 16-bit counter that records far-end bloc k errors (febe) as reported in the first bit of fram es 13 and 15 on e1 lines running with crc4 multiframe. these count registers increment once each time the received e-bit is set to 0. since the maximum e-bit count in a one- second period is 1000, this counter cannot saturate. the counter is disabl ed during loss-of-sync at either the fas or crc4 level; it continues to count if lo ss-of-multiframe sync occurs at the cas level. register name: ebcr1 register description: e-bit count register 1 register address: 48h bit # 7 6 5 4 3 2 1 0 name eb15 eb14 eb13 eb12 eb11 eb10 eb9 eb8 default 0 0 0 0 0 0 0 0 bits 0 to 7/e-bit counter bits 8 to 15 (eb8 to eb15). eb15 is the msb of the 16-bit e-bit count. register name: ebcr2 register description: e-bit count register 2 register address: 49h bit # 7 6 5 4 3 2 1 0 name eb7 eb6 eb5 eb4 eb3 eb2 eb1 eb0 default 0 0 0 0 0 0 0 0 bits 0 to 7/e-bit counter bits 0 to 7 (eb0 to eb7). eb0 is the lsb of the 16-bit e-bit count. downloaded from: http:///
ds2155 81 of 238 15. ds0 monitoring function the ds2155 has the ability to monitor one ds0 64kbps channel in the transmit direction and one ds0 channel in the receive direction at the same time. in the transmit direction, the user determines which channel is to be monitored by proper ly setting the tcm0 to tcm4 bits in the tds0sel register. in the receive direction, the rcm0 to rcm4 bits in the rd s0sel register need to be properly set. the ds0 channel pointed to by the tcm0 to tcm4 bits a ppear in the transmit ds0 monitor (tds0m) register. the ds0 channel pointed to by the rcm0 to rcm4 bits appear in the receive ds0 (rds0m) register. the tcm4 to tcm0 and rcm4 to rcm0 bits should be programmed with the decimal decode of the appropriate t1or e1 channel. t1 channels 1 through 24 map to register values 0 through 23. e1 channels 1 through 32 map to register values 0 through 31. for example, if ds0 channel 6 in the transmit direction and ds0 channel 15 in the receive direction needed to be monito red, then the following values would be programmed into tds0sel and rds0sel: tcm4 = 0 rcm4 = 0 tcm3 = 0 rcm3 = 1 tcm2 = 1 rcm2 = 1 tcm1 = 0 rcm1 = 1 tcm0 = 1 rcm0 = 0 register name: tds0sel register description: transmit channel monitor select register address: 74h bit # 7 6 5 4 3 2 1 0 name tcm4 tcm3 tcm2 tcm1 tcm0 default 0 0 0 0 0 0 0 0 bits 0 to 4/transmit channel monitor bits (tcm0 to tcm4). tcm0 is the lsb of a 5-bit channel select that determines which transmit channel data appear in the tds0m register. bits 5 to 7/unused, must be set to 0 for proper operation register name: tds0m register description: transmit ds0 monitor register register address: 75h bit # 7 6 5 4 3 2 1 0 name b1 b2 b3 b4 b5 b6 b7 b8 default 0 0 0 0 0 0 0 0 bits 0 to 7/transmit ds0 channel bits (b1 to b8). transmit channel data that has been selected by the transmit channel monitor select register. b8 is the lsb of the ds0 channel (last bit to be transmitted). downloaded from: http:///
ds2155 82 of 238 register name: rds0sel register description: receive channel monitor select register address: 76h bit # 7 6 5 4 3 2 1 0 name rcm4 rcm3 rcm2 rcm1 rcm0 default 0 0 0 0 0 0 0 0 bits 0 to 4/receive channel monitor bits (rcm0 to rcm4). rcm0 is the lsb of a 5-bit channel select that determines which receive ds0 channel da ta appear in the rds0m register. bits 5 to 7/unused, must be set to 0 for proper operation register name: rds0m register description: receive ds0 monitor register register address: 77h bit # 7 6 5 4 3 2 1 0 name b1 b2 b3 b4 b5 b6 b7 b8 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive ds0 channel bits (b1 to b8). receive channel data that has been selected by the receive channel monitor select register. b8 is the lsb of the ds0 channel (last bit to be received). downloaded from: http:///
ds2155 83 of 238 16. signaling operation there are two methods to access r eceive signaling data and provide transmit signaling data, processor- based (software-based) or hardware-based. proce ssor-based refers to access through the transmit and receive signaling registers rs1Crs1 6 and ts1Cts16. hardware-based refe rs to the tsig and rsig pins. both methods can be used simultaneously. 16.1 receive signaling figure 16-1. simplified diagra m of receive signaling path 16.1.1 processor-based signaling the robbed-bit signaling (t1) or ts16 cas signaling (e 1) is sampled in the receive data stream and copied into the receive signaling registers, rs 1Crs16. in t1 mode, only rs1Crs12 are used. the signaling information in these registers is always updated on multiframe boundaries. this function is always enabled. 16.1.1.1 change-of-state to avoid constant monitoring of th e receive signaling registers, the ds2155 can be programmed to alert the host when any specific channel or channels undergo a change of th eir signaling state. rscse1Crscse4 for e1 and rscse1Crscse3 for t1 ar e used to select which channels can cause a change-of-state indication. the change -of-state is indicated in status register 5 (sr1.5). if signaling integration (ccr1.5) is enabled, then the new signa ling state must be constant for three multiframes before a change-of-state is indica ted. the user can enable the int pin to toggle low upon detection of a change in signaling by setting the imr1.5 bit. the signaling integration mode is global and cannot be enabled on a channel-by-channel basis. the user can identity which channels have unde rgone a signaling change-of-state by reading the rsinfo1Crsinfo4 registers. the info rmation from these registers inform the user which rsx register to read for the new signaling data. all changes are indicated in the rs info1Crsinfo4 registers regardless of the rscse1Crscse4 registers. receive signaling registers change-of-state indication registers signaling buffers a ll-ones reinsertion control rser rsync rsig t1/e1 data stream per-channel control signaling extraction downloaded from: http:///
ds2155 84 of 238 16.1.2 hardware-based receive signaling in hardware-based signaling the signaling data can be obtained from the rser pin or the rsig pin. rsig is a signaling pcm stream output on a channe l-by-channel basis from the signaling buffer. the signaling data, t1 robbed bit or e1 ts16, is still present in the original data stream at rser. the signaling buffer provides signaling data to the rsig pin and also allows signaling data to be reinserted into the original data stream in a different alignm ent that is determined by a multiframe signal from the rsync pin. in this mode, the receive elastic store can be enabled or disabled. if the receive elastic store is enabled, then the backplane clock (rsysclk) can be either 1.544mhz or 2.048mhz. in the esf framing mode, the abcd signaling bits are output on rsig in the lower nibble of each channel. the rsig data is updated once a multiframe (3ms) unless a freeze is in effect. in the d4 framing mode, the ab signaling bits are output twice on rsig in the lower ni bble of each channel. hence, bits 5 and 6 contain the same data as bits 7 and 8, respectivel y, in each channel. the rsig data is updated once a multiframe (1.5ms) unless a freeze is in eff ect. see the timing diagrams in section 35 for some examples. 16.1.2.1 receive signaling reinsertion at rser in this mode, the user provides a multiframe sync at the rsync pin and the signaling data is reinserted based on this alignment. in t1 mode, this results in two copies of the signaling data in the rser data stream, the original signaling data a nd the realigned data. this is of litt le consequence in voice channels. reinsertion can be avoided in data ch annels since this feature is activat ed on a per-channel basis. in this mode, the elastic store must be enabled; however , the backplane clock can be either 1.544mhz or 2.048mhz. signaling reinsertion can be enabled on a per-channel basis by setting the rsrcs bit high in the pcpr register. the channels that will have signaling rein serted are selected by writing to the pcdr1Cpcdr3 registers for t1 mode and pcdr1Cpc dr4 registers for e1 mode. in e1 mode, the user generally selects all channels or none for reinsertion. in e1 mode, signa ling reinsertion on all channels can be enabled with a single bit, sigcr.7 (grsre). this bit allows the user to reinsert a ll signaling channels without having to program all channels through the per-channel function. 16.1.2.2 force recei ve signaling all ones in t1 mode, the user can, on a per-channel basis, fo rce the robbed-bit signaling bit positions to a 1 by using the per-channel register (section 7 ). the user sets the btcs bit in the pcpr register. the channels that will be forced to 1 are selected by writing to the pcdr 1Cpcdr3 registers. 16.1.2.3 receive signaling freeze the signaling data in the four mu ltiframe signaling buffers is frozen in a known good state upon either a loss of synchronization (oof event), carrier loss, or frame slip. this action meets the requirements of bellcore trCtsyC000170 for signaling freezing. to allo w this freeze action to occur, the rfe control bit (sigcr.4) should be set high. the user can for ce a freeze by setting the rff control bit (sigcr.3) high. the rsigf output pin provides a hardware indicati on that a freeze is in e ffect. the four-multiframe buffer provides a three-multiframe delay in the signali ng bits provided at the rs ig pin (and at the rser pin if receive signaling reinsertion is enabled). when freezing is enable d (rfe = 1), the signaling data is held in the last-known good state until the corrupti ng error condition subsides. when the error condition subsides, the signaling data is held in the old state for at least an additional 9ms (or 4.5ms in d4 framing mode) before updating with new signaling data. downloaded from: http:///
ds2155 85 of 238 register name: sigcr register description: signaling control register register address: 40h bit # 7 6 5 4 3 2 1 0 name grsre rfe rff rccs tccs frsao default 0 0 0 0 0 0 0 0 bit 0/force receive signaling all ones (frsao). in t1 mode, this bit forces all signaling data at the rsig and rser pin to all ones. this bit has no effect in e1 mode. 0 = normal signaling data at rsig and rser 1 = force signaling data at rsig and rser to all ones bit 1/transmit time slot control for cas signaling (tccs). controls the order that signaling is transmitted from the transmit signaling registers. this bit should be set = 0 in t1 mode. 0 = signaling data is cas format 1 = signaling data is ccs format bit 2/receive time slot control for cas signaling (rccs). controls the order that signaling is placed into the receive signaling registers. this bit should be set = 0 in t1 mode. 0 = signaling data is cas format 1 = signaling data is ccs format bit 3/receive force freeze (rff). freezes receive-side signaling at rsig (and rser if receive signaling reinsertion is enabled); overrides receive freeze enable (rfe). see section 16.1.2.3 for details. 0 = do not force a freeze event 1 = force a freeze event bit 4/receive freeze enable (rfe). see section 16.1.2.3 for details. 0 = no freezing of receive signaling data occurs 1 = allow freezing of receive signaling data at rsig (a nd rser if receive signaling reinsertion is enabled) bits 5, 6/unused, must be set to 0 for proper operation bit 7/global receive signaling reinsertion enable (grsre). this bit allows the user to reinsert all signaling channels without programming all channels through the per-channel function. 0 = do not reinsert all signaling 1 = reinsert all signaling downloaded from: http:///
ds2155 86 of 238 register name: rs1 to rs12 register description: receive signaling registers (t1 mode, esf format) register address: 60h to 6bh (msb) (lsb) ch2-a ch2-b ch2-c ch2-d ch1-a ch1-b ch1-c ch1-d rs1 ch4-a ch4-b ch4-c ch4-d ch3-a ch3-b ch3-c ch3-d rs2 ch6-a ch6-b ch6-c ch6-d ch5-a ch5-b ch5-c ch5-d rs3 ch8-a ch8-b ch8-c ch8-d ch7-a ch7-b ch7-c ch7-d rs4 ch10-a ch10-b ch10-c ch10-d ch9-a ch9-b ch9-c ch9-d rs5 ch12-a ch12-b ch12-c ch12-d ch11-a ch11-b ch11-c ch11-d rs6 ch14-a ch14-b ch14-c ch14-d ch13-a ch13-b ch13-c ch13-d rs7 ch16-a ch16-b ch16-c ch16-d ch15-a ch15-b ch15-c ch15-d rs8 ch18-a ch18-b ch18-c ch18-d ch17-a ch17-b ch17-c ch17-d rs9 ch20-a ch20-b ch20-c ch20-d ch19-a ch19-b ch19-c ch19-d rs10 ch22-a ch22-b ch22-c ch22-d ch21-a ch21-b ch21-c ch21-d rs11 ch24-a ch24-b ch24-c ch24-d ch23-a ch23-b ch23-c ch23-d rs12 register name: rs1 to rs12 register description: receive signaling registers (t1 mode, d4 format) register address: 60h to 6bh (msb) (lsb) ch2-a ch2-b ch2-a ch2-b ch1-a ch1-b ch1-a ch1-b rs1 ch4-a ch4-b ch4-a ch4-b ch3-a ch3-b ch3-a ch3-b rs2 ch6-a ch6-b ch6-a ch6-b ch5-a ch5-b ch5-a ch5-b rs3 ch8-a ch8-b ch8-a ch8-b ch7-a ch7-b ch7-a ch7-b rs4 ch10-a ch10-b ch10-a ch10-b ch9-a ch9-b ch9-a ch9-b rs5 ch12-a ch12-b ch12-a ch12-b ch11-a ch11-b ch11-a ch11-b rs6 ch14-a ch14-b ch14-a ch14-b ch13-a ch13-b ch13-a ch13-b rs7 ch16-a ch16-b ch16-a ch16-b ch15-a ch15-b ch15-a ch15-b rs8 ch18-a ch18-b ch18-a ch18-b ch17-a ch17-b ch17-a ch17-b rs9 ch20-a ch20-b ch20-a ch20-b ch19-a ch19-b ch19-a ch19-b rs10 ch22-a ch22-b ch22-a ch22-b ch21-a ch21-b ch21-a ch21-b rs11 ch24-a ch24-b ch24-a ch24-b ch23-a ch23-b ch23-a ch23-b rs12 note: in d4 format, ts1Cts12 contain signaling data for two frames. bold type indicates data for second frame. downloaded from: http:///
ds2155 87 of 238 register name: rs1 to rs16 register description: receive signaling registers (e1 mode, cas format) register address: 60h to 6fh (msb) (lsb) 0 0 0 0 x y x x rs1 ch2-a ch2-b ch2-c ch2-d ch1-a ch1-b ch1-c ch1-d rs2 ch4-a ch4-b ch4-c ch4-d ch3-a ch3-b ch3-c ch3-d rs3 ch6-a ch6-b ch6-c ch6-d ch5-a ch5-b ch5-c ch5-d rs4 ch8-a ch8-b ch8-c ch8-d ch7-a ch7-b ch7-c ch7-d rs5 ch10-a ch10-b ch10-c ch10-d ch9-a ch9-b ch9-c ch9-d rs6 ch12-a ch12-b ch12-c ch12-d ch11-a ch11-b ch11-c ch11-d rs7 ch14-a ch14-b ch14-c ch14-d ch13-a ch13-b ch13-c ch13-d rs8 ch16-a ch16-b ch16-c ch16-d ch15-a ch15-b ch15-c ch15-d rs9 ch18-a ch18-b ch18-c ch18-d ch17-a ch17-b ch17-c ch17-d rs10 ch20-a ch20-b ch20-c ch20-d ch19-a ch19-b ch19-c ch19-d rs11 ch22-a ch22-b ch22-c ch22-d ch21-a ch21-b ch21-c ch21-d rs12 ch24-a ch24-b ch24-c ch24-d ch23-a ch23-b ch23-c ch23-d rs13 ch26-a ch26-b ch26-c ch26-d ch25-a ch25-b ch25-c ch25-d rs14 ch28-a ch28-b ch28-c ch28-d ch27-a ch27-b ch27-c ch27-d rs15 ch30-a ch30-b ch30-c ch30-d ch29-a ch29-b ch29-c ch29-d rs16 register name: rs1 to rs16 register description: receive signaling registers (e1 mode, ccs format) register address: 60h to 6fh (msb) (lsb) 1 2 3 4 5 6 7 8 rs1 9 10 11 12 13 14 15 16 rs2 17 18 19 20 21 22 23 24 rs3 25 26 27 28 29 30 31 32 rs4 33 34 35 36 37 38 39 40 rs5 41 42 43 44 45 46 47 48 rs6 49 50 51 52 53 54 55 56 rs7 57 58 59 60 61 62 63 64 rs8 65 66 67 68 69 70 71 72 rs9 73 74 75 76 77 78 79 80 rs10 81 82 83 84 85 86 87 88 rs11 89 90 91 92 93 94 95 96 rs12 97 98 99 100 101 102 103 104 rs13 105 106 107 108 109 110 111 112 rs14 113 114 115 116 117 118 119 120 rs15 121 122 123 124 125 126 127 128 rs16 downloaded from: http:///
ds2155 88 of 238 register name: rscse1, rscse2, rscse3, rscse4 register description: receive signaling change-of-state interrupt enable register address: 3ch, 3dh, 3eh, 3fh (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 rscse1 ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 rscse2 ch24 ch23 ch22 ch21 ch20 ch19 ch18 ch17 rscse3 ch30 ch29 ch28 ch27 ch26 ch25 rscse4 setting any of the ch1Cch30 bits in the rscse1Crscse4 registers causes an interrupt when that channels signaling data changes state. register name: rsinfo1, rsinfo2, rsinfo3, rsinfo4 register description: receive signaling change-of-state information register address: 38h, 39h, 3ah, 3bh (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 rsinfo1 ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 rsinfo2 ch24 ch23 ch22 ch21 ch20 ch19 ch18 ch17 rsinfo3 ch30 ch29 ch28 ch27 ch26 ch25 rsinfo4 when a channels signaling data chang es state, the respective b it in registers rsinfo1C4 is set. an interrupt is generated if the channel was also enabled as an interrupt source by setting the appropr iate bit in rscse1C4. the bit remains set until read. downloaded from: http:///
ds2155 89 of 238 16.2 transmit signaling figure 16-2. simplified diagram of transmit signaling path 16.2.1 processor-based mode in processor-based mode, signaling da ta is loaded into the transmit si gnaling registers (t s1Cts16) by the host interface. on multif rame boundaries, the contents of these regist ers are loaded into a shift register for placement in the appropriate bit position in the outgoing data stream. the user can employ the transmit multiframe interrupt in status register 4 (sr4.4) to know when to update the signaling bits. the user need not update any transmit signaling regi ster for which there is no cha nge-of-state for that register. each transmit signaling register c ontains the robbed-bit signaling (t 1) or ts16 cas signaling (e1) for two time slots that are inserted into the outgoing stream, if enabled to do so through t1tcr1.4 (t1 mode) or e1tcr1.6 (e1 mode). in t1 mode, only ts1Cts12 are used. signaling data can be sourced from the ts regist ers on a per-channel basis by using the software signaling insertion enable registers, ssie1Cssie4. 16.2.1.1 t1 mode in t1 esf framing mode, there are four signaling b its per channel (a, b, c, and d). ts1Cts12 contain a full multiframe of signaling data. in t1 d4 framing mode, there are only two signaling bits per channel (a and b). in t1 d4 framing mode, the framer uses the c and d bit positions as the a and b bit positions for the next multiframe. in d4 mode , two multiframes of signaling data can be loaded into ts1Cts12. the framer loads the contents of ts1Cts12 into the outgoing shift register every other d4 multiframe. in d4 mode, the host should load new contents into ts1Cts12 on every other multiframe boundary and no later than 120s after the boundary. transmit signaling registers signaling buffers per-channel control tser tsig t1/e1 data stream per-channel control ssie1 - ssie4 b7 t1tcr1.4 1 0 01 0 1 pcpr.3 only applies to t1 mode downloaded from: http:///
ds2155 90 of 238 16.2.1.2 e1 mode in e1 mode, ts16 carries the signaling information. this information can be in either ccs (common channel signaling) or cas (channel a ssociated signaling) format. the 32 time slots are referenced by two different channel number schemes in e1. in cha nnel numbering, ts0Cts31 are labeled channels 1 through 32. in phone channel numbering, ts1Cts 15 are labeled channel 1 through channel 15 and ts17Cts31 are labeled channel 15 through channel 30. table 16-a. time slot numbering schemes ts 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 channel 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 phone channel 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 downloaded from: http:///
ds2155 91 of 238 register name: ts1 to ts16 register description: transmit signaling registers (e1 mode, cas format) register address: 50h to 5fh (msb) (lsb) 0 0 0 0 x y x x ts1 ch2-a ch2-b ch2-c ch2-d ch1-a ch1-b ch1-c ch1-d ts2 ch4-a ch4-b ch4-c ch4-d ch3-a ch3-b ch3-c ch3-d ts3 ch6-a ch6-b ch6-c ch6-d ch5-a ch5-b ch5-c ch5-d ts4 ch8-a ch8-b ch8-c ch8-d ch7-a ch7-b ch7-c ch7-d ts5 ch10-a ch10-b ch10-c ch10-d ch9-a ch9-b ch9-c ch9-d ts6 ch12-a ch12-b ch12-c ch12-d ch11-a ch11-b ch11-c ch11-d ts7 ch14-a ch14-b ch14-c ch14-d ch13-a ch13-b ch13-c ch13-d ts8 ch16-a ch16-b ch16-c ch16-d ch15-a ch15-b ch15-c ch15-d ts9 ch18-a ch18-b ch18-c ch18-d ch17-a ch17-b ch17-c ch17-d ts10 ch20-a ch20-b ch20-c ch20-d ch19-a ch19-b ch19-c ch19-d ts11 ch22-a ch22-b ch22-c ch22-d ch21-a ch21-b ch21-c ch21-d ts12 ch24-a ch24-b ch24-c ch24-d ch23-a ch23-b ch23-c ch23-d ts13 ch26-a ch26-b ch26-c ch26-d ch25-a ch25-b ch25-c ch25-d ts14 ch28-a ch28-b ch28-c ch28-d ch27-a ch27-b ch27-c ch27-d ts15 ch30-a ch30-b ch30-c ch30-d ch29-a ch29-b ch29-c ch29-d ts16 register name: ts1 to ts16 register description: transmit signaling registers (e1 mode, ccs format) register address: 50h to 5fh (msb) (lsb) 1 2 3 4 5 6 7 8 ts1 9 10 11 12 13 14 15 16 ts2 17 18 19 20 21 22 23 24 ts3 25 26 27 28 29 30 31 32 ts4 33 34 35 36 37 38 39 40 ts5 41 42 43 44 45 46 47 48 ts6 49 50 51 52 53 54 55 56 ts7 57 58 59 60 61 62 63 64 ts8 65 66 67 68 69 70 71 72 ts9 73 74 75 76 77 78 79 80 ts10 81 82 83 84 85 86 87 88 ts11 89 90 91 92 93 94 95 96 ts12 97 98 99 100 101 102 103 104 ts13 105 106 107 108 109 110 111 112 ts14 113 114 115 116 117 118 119 120 ts15 121 122 123 124 125 126 127 128 ts16 downloaded from: http:///
ds2155 92 of 238 register name: ts1 to ts12 register description: transmit signaling registers (t1 mode, esf format) register address: 50h to 5bh (msb) (lsb) ch2-a ch2-b ch2-c ch2-d ch1-a ch1-b ch1-c ch1-d ts1 ch4-a ch4-b ch4-c ch4-d ch3-a ch3-b ch3-c ch3-d ts2 ch6-a ch6-b ch6-c ch6-d ch5-a ch5-b ch5-c ch5-d ts3 ch8-a ch8-b ch8-c ch8-d ch7-a ch7-b ch7-c ch7-d ts4 ch10-a ch10-b ch10-c ch10-d ch9-a ch9-b ch9-c ch9-d ts5 ch12-a ch12-b ch12-c ch12-d ch11-a ch11-b ch11-c ch11-d ts6 ch14-a ch14-b ch14-c ch14-d ch13-a ch13-b ch13-c ch13-d ts7 ch16-a ch16-b ch16-c ch16-d ch15-a ch15-b ch15-c ch15-d ts8 ch18-a ch18-b ch18-c ch18-d ch17-a ch17-b ch17-c ch17-d ts9 ch20-a ch20-b ch20-c ch20-d ch19-a ch19-b ch19-c ch19-d ts10 ch22-a ch22-b ch22-c ch22-d ch21-a ch21-b ch21-c ch21-d ts11 ch24-a ch24-b ch24-c ch24-d ch23-a ch23-b ch23-c ch23-d ts12 register name: ts1 to ts12 register description: transmit signaling registers (t1 mode, d4 format) register address: 50h to 5bh (msb) (lsb) ch2-a ch2-b ch2-a ch2-b ch1-a ch1-b ch1-a ch1-b ts1 ch4-a ch4-b ch4-a ch4-b ch3-a ch3-b ch3-a ch3-b ts2 ch6-a ch6-b ch6-a ch6-b ch5-a ch5-b ch5-a ch5-b ts3 ch8-a ch8-b ch8-a ch8-b ch7-a ch7-b ch7-a ch7-b ts4 ch10-a ch10-b ch10-a ch10-b ch9-a ch9-b ch9-a ch9-b ts5 ch12-a ch12-b ch12-a ch12-b ch11-a ch11-b ch11-a ch11-b ts6 ch14-a ch14-b ch14-a ch14-b ch13-a ch13-b ch13-a ch13-b ts7 ch16-a ch16-b ch16-a ch16-b ch15-a ch15-b ch15-a ch15-b ts8 ch18-a ch18-b ch18-a ch18-b ch17-a ch17-b ch17-a ch17-b ts9 ch20-a ch20-b ch20-a ch20-b ch19-a ch19-b ch19-a ch19-b ts10 ch22-a ch22-b ch22-a ch22-b ch21-a ch21-b ch21-a ch21-b ts11 ch24-a ch24-b ch24-a ch24-b ch23-a ch23-b ch23-a ch23-b ts12 note: in d4 format, ts1Cts12 contain signaling data for tw o frames. bold type indicates data for second frame. downloaded from: http:///
ds2155 93 of 238 16.2.2 software signaling insertion-en able registers, e1 cas mode in e1 cas mode, the cas signalin g alignment/alarm byte can be sourced from the transmit signaling registers along with the signaling data. register name: ssie1 register description: software signaling insertion enable 1 register address: 08h bit # 7 6 5 4 3 2 1 0 name ch7 ch6 ch5 ch4 ch3 ch2 ch1 ucaw default 0 0 0 0 0 0 0 0 bit 0/upper cas align/alarm word (ucaw). selects the upper cas align/alarm pattern (0000) to be sourced from the upper 4 bits of the ts1 register. 0 = do not source the upper cas align/alarm pattern from the ts1 register 1 = source the upper cas align/alarm pattern from the ts1 register bits 1 to 7/software signaling-insertion enab le for channels 1 to 7 (ch1 to ch7). these bits determine which channels are to have signaling inserted from the transmit signaling registers. 0 = do not source signaling data from the tsx registers for this channel 1 = source signaling data from the tsx registers for this channel register name: ssie2 register description: software signaling insertion enable 2 register address: 09h bit # 7 6 5 4 3 2 1 0 name ch15 ch14 ch13 ch12 ch11 ch10 ch9 ch8 default 0 0 0 0 0 0 0 0 bits 0 to 7/software signaling insertion enab le for channels 8 to 15 (ch8 to ch15). these bits determine which channels are to have signaling inserted from the transmit signaling registers. 0 = do not source signaling data from the tsx registers for this channel 1 = source signaling data from the tsx registers for this channel downloaded from: http:///
ds2155 94 of 238 register name: ssie3 register description: software signaling insertion enable 3 register address: 0ah bit # 7 6 5 4 3 2 1 0 name ch22 ch21 ch20 ch19 ch18 ch17 ch16 lcaw default 0 0 0 0 0 0 0 0 bit 0/lower cas align/alarm word (lcaw). selects the lower cas align/alarm bits (xyxx) to be sourced from the lower 4 bits of the ts1 register. 0 = do not source the lower cas align/alarm bits from the ts1 register 1 = source the lower cas alarm align/bits from the ts1 register bits 1 to 7/software signaling insertion enable fo r lcaw and channels 16 to 22 (ch16 to ch22). these bits determine which channels ar e to have signaling inserted from the transmit signaling registers. 0 = do not source signaling data from the tsx registers for this channel 1 = source signaling data from the tsx registers for this channel register name: ssie4 register description: software signaling insertion enable 4 register address: 0bh bit # 7 6 5 4 3 2 1 0 name ch30 ch29 ch28 ch 27 ch26 ch25 ch24 ch23 default 0 0 0 0 0 0 0 0 bits 0 to 7/software signaling insertion enable for channels 22 to 30 (ch23 to ch30). these bits determine which channels are to have signaling inserted from the transmit signaling registers. 0 = do not source signaling data from the tsx registers for this channel 1 = source signaling data from the tsx registers for this channel downloaded from: http:///
ds2155 95 of 238 16.2.3 software signaling insertion- enable registers, t1 mode in t1 mode, only registers ssie1Cssie3 are used since there are only 24 channels in a t1 frame. register name: ssie1 register description: software signaling insertion enable 1 register address: 08h bit # 7 6 5 4 3 2 1 0 name ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 default 0 0 0 0 0 0 0 0 bits 0 to 7/software signaling insertion enable for channels 1 to 8 (ch1 to ch8). these bits determine which channels are to have signaling inserted from the transmit signaling registers. 0 = do not source signaling data from the tsx registers for this channel 1 = source signaling data from the tsx registers for this channel register name: ssie2 register description: software signaling-insertion enable 2 register address: 09h bit # 7 6 5 4 3 2 1 0 name ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 default 0 0 0 0 0 0 0 0 bits 0 to 7/software signaling insertion enab le for channels 9 to 16 (ch9 to ch16). these bits determine which channels are to have signaling inserted from the transmit signaling registers. 0 = do not source signaling data from the tsx registers for this channel 1 = source signaling data from the tsx registers for this channel register name: ssie3 register description: software signaling-insertion enable 3 register address: 0ah bit # 7 6 5 4 3 2 1 0 name ch24 ch23 ch22 ch 21 ch20 ch19 ch18 ch17 default 0 0 0 0 0 0 0 0 bits 0 to 7/software signaling insertion enable for channels 17 to 24 (ch17 to ch24). these bits determine which channels are to have signaling inserted from the transmit signaling registers. 0 = do not source signaling data from the tsx registers for this channel 1 = source signaling data from the tsx registers for this channel 16.2.4 hardware-based mode in hardware-based mode, signaling data is input through the tsig pi n. this signaling pcm stream is buffered and inserted to the data stream being input at the tser pin. signaling data can be inserted on a per-channel basis by the transmit hardware-signaling channel-select (thscs) function. the user has the abil ity to control which channels are to have signaling data from the tsig pin inserted into them on a per-channel basis. see section 7 for details on using this per-channel (thscs) feature. the signaling insertion capabilities of the framer are available whether the transmit- side elastic store is enabled or disabled. if the el astic store is enabled, the backplane clock (tsysclk) can be either 1.544mhz or 2.048mhz. also, if the el astic is enabled in conjunction with transmit hardware signaling, ccr3.7 must be set = 0. downloaded from: http:///
ds2155 96 of 238 17. per-channel idle code generation channel data can be replaced by an idle code on a per-channel basis in the transmit and receive directions. when operated in the t1 mode, only the first 24 channels are used by the ds2155, the remaining channels, ch25Cch32, are not used. the ds2155 contains a 64-byte idle code array accessed by th e idle array address re gister (iaar) and the per-channel idle code register (pcicr). the contents of the array contain the idle codes to be substituted into the appropriate transmit or receive channels. this substitution can be enable d and disabled on a per- channel basis by the transmit-channe l idle code-enable registers (tci ce1C4) and receiv e-channel idle code-enable registers (rcice1C4). to program idle codes, first select a channel by writing to the iaar register. then write the idle code to the pcicr register. for successive writes there is no need to load the iaar w ith the next consecutive address. the iaar register automatically incremen ts after a write to the pcicr register. the auto increment feature can be used for read operations as we ll. bits 6 and 7 of the i aar register can be used to block write a common idle code to all transmit or receive positions in the array with a single write to the pcicr register. bits 6 and 7 of the iaar regist er should not be used for read operations. tcice1C4 and rcice1C4 are used to enable idle c ode replacement on a per-channel basis. table 17-a. idle-code array address mapping bits 0 to 5 of iaar register maps to channel 0 transmit channel 1 1 transmit channel 2 2 transmit channel 3 30 transmit channel 31 31 transmit channel 32 32 receive channel 1 33 receive channel 2 34 receive channel 3 62 receive channel 31 63 receive channel 32 downloaded from: http:///
ds2155 97 of 238 17.1 idle-code programming examples example 1 sets transmit channel 3 idle code to 7eh. write iaar = 02h ;select channel 3 in the array write pcicr = 7eh ;set idle code to 7eh example 2 sets transmit channels 3, 4, 5, and 6 idle code to 7eh and enables transmi ssion of idle codes for those channels. write iaar = 02h ;select channel 3 in the array write pcicr = 7eh ;set channel 3 idle code to 7eh write pcicr = 7eh ;set channel 4 idle code to 7eh write pcicr = 7eh ;set channel 5 idle code to 7eh write pcicr = 7eh ;set channel 6 idle code to 7eh write tcice1 = 3ch ;enable transmission of idle codes for channels 3,4,5, and 6 example 3 sets transmit channels 3, 4, 5, and 6 idle code to 7eh, eeh, ffh, and 7eh, respectively. write iaar = 02h write pcicr = 7eh write pcicr = eeh write pcicr = ffh write pcicr = 7eh example 4 sets all transmit idle codes to 7eh. write iaar = 4xh write pcicr = 7eh example 5 sets all receive and transmit idle cod es to 7eh and enables idle code subs titution in all e1 transmit and receive channels. write iaar = cxh ;enable block write to all transmit and receive positions in the array write pcicr = 7eh ;7eh is idle code write tcice1 = feh ;enable idle code substitution for transmit channels 2 through 8 ;although an idle code was programmed for channel 1 by the block write ;function above, enabling it for channel 1 would step on the frame ;alignment, alarms, and sa bits write tcice2 = ffh ;enable idle code substitution for transmit channels 9 through 16 write tcice3 = feh ;enable idle code substitution for transmit channels 18 through 24 ;although an idle code was programmed for channel 17 by the block write ;function above, enabling it for channel 17 would step on the cas frame ;alignment, and signaling information write tcice4 = ffh ;enable idle code substitution for transmit channels 25 through 32 write rcice1 = feh ;enable idle code substitution for receive channels 2 through 8 write rcice2 = ffh ;enable idle code substitution for receive channels 9 through 16 write rcice3 = feh ;enable idle code substitution for receive channels 18 through 24 write rcice4 = ffh ;enable idle code substitution for receive channels 25 through 32 downloaded from: http:///
ds2155 98 of 238 register name: iaar register description: idle array address register register address: 7eh bit # 7 6 5 4 3 2 1 0 name gric gtic iaa5 iaa4 iaa3 iaa2 iaa1 iaa0 default 0 0 0 0 0 0 0 0 bits 0 to 5/channel pointer a ddress bits (iaa0 to iaa5). these bits select the channel to be programmed with the idle code defined in the pcicr register. iaa0 is the lsb of the 5-bit channel code. channel 1 is 01h. bit 6/global transmit-idle code (gtic). setting this bit causes all transmit channels to be set to the idle code written to the pcicr register. this bit must be set = 0 fo r read operations. the value in bits iaa0Ciaa5 must be a valid transmit channel (01h to 20h for e1 mode; 01h to 18h for t1 mode). bit 7/global receive-idle code (gric). setting this bit causes all receive channels to be set to the idle code written to the pcicr register. this bit must be set = 0 fo r read operations. the value in bits iaa0Ciaa5 must be a valid transmit channel (01h to 20h for e1 mode; 01h to 18h for t1 mode). table 17-b. gric and gtic functions gric gtic function 0 0 updates a single transmit or receive channel 0 1 updates all transmit channels 1 0 updates all receive channels 1 1 updates all transmit and receive channels register name: pcicr register description: per-channel idle code register register address: 7fh bit # 7 6 5 4 3 2 1 0 name c7 c6 c5 c4 c3 c2 c1 c0 default 0 0 0 0 0 0 0 0 bits 0 to 7/per-channel idle-code bits (c0 to c7). this register defines the idle code to be programmed in the channel selected by the iaar register. c0 is the lsb of the idle code (this bit is transmitted last). downloaded from: http:///
ds2155 99 of 238 the transmit-channel idle-code enable registers (tcice1/2/3/ 4) are used to determine which of the 24 t1 or 32 e1 channels from the backplane to the t1 or e1 line should be overwritten w ith the code placed in the per-channel code array. register name: tcice1 register description: transmit-channel idle-code enable register 1 register address: 80h bit # 7 6 5 4 3 2 1 0 name ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 default 0 0 0 0 0 0 0 0 bits 0 to 7/transmit channels 1 to 8 code insertion control bits (ch1 to ch8) 0 = do not insert data from the idle-code array into the transmit data stream 1 = insert data from the idle-code a rray into the transmit data stream register name: tcice2 register description: transmit-channel idle-code enable register 2 register address: 81h bit # 7 6 5 4 3 2 1 0 name ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 default 0 0 0 0 0 0 0 0 bits 0 to 7/transmit channels 9 to 16 code insertion control bits (ch9 to ch16) 0 = do not insert data from the idle-code array into the transmit data stream 1 = insert data from the idle code-a rray into the transmit data stream register name: tcice3 register description: transmit-channel idle-code enable register 3 register address: 82h bit # 7 6 5 4 3 2 1 0 name ch24 ch23 ch22 ch 21 ch20 ch19 ch18 ch17 default 0 0 0 0 0 0 0 0 bits 0 to 7/transmit channels 17 to 24 code insertion control bits (ch17 to ch24) 0 = do not insert data from the idle-code array into the transmit data stream 1 = insert data from the idle code-a rray into the transmit data stream register name: tcice4 register description: transmit-channel idle-code enable register 4 register address: 83h bit # 7 6 5 4 3 2 1 0 name ch32 ch31 ch30 ch 29 ch28 ch27 ch26 ch25 default 0 0 0 0 0 0 0 0 bits 0 to 7/transmit channels 25 to 32 code insertion control bits (ch25 to ch32) 0 = do not insert data from the idle-code array into the transmit data stream 1 = insert data from the idle-code array into the transmit data stream downloaded from: http:///
ds2155 100 of 238 the receive-channel idle-code enable registers (rcice1/2/3/ 4) are used to determine which of the 24 t1 or 32 e1 channels from the backplane to the t1 or e1 line should be overwritten w ith the code placed in the per-channel code array. register name: rcice1 register description: receive-channel idle-code enable register 1 register address: 84h bit # 7 6 5 4 3 2 1 0 name ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive channels 1 to 8 code insertion control bits (ch1 to ch8) 0 = do not insert data from the idle-code array into the receive data stream 1 = insert data from the idle-code array into the receive data stream register name: rcice2 register description: receive-channel idle-code enable register 2 register address: 85h bit # 7 6 5 4 3 2 1 0 name ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive channels 9 to 16 code insertion control bits (ch9 to ch16) 0 = do not insert data from the idle-code array into the receive data stream 1 = insert data from the idle-code array into the receive data stream register name: rcice3 register description: receive-channel idle-code enable register 3 register address: 86h bit # 7 6 5 4 3 2 1 0 name ch24 ch23 ch22 ch 21 ch20 ch19 ch18 ch17 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive channels 17 to 24 code insertion control bits (ch17 to ch24) 0 = do not insert data from the idle-code array into the receive data stream 1 = insert data from the idle-code array into the receive data stream register name: rcice4 register description: receive-channel idle-code enable register 4 register address: 87h bit # 7 6 5 4 3 2 1 0 name ch32 ch31 ch30 ch 29 ch28 ch27 ch26 ch25 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive channels 25 to 32 code insertion control bits (ch25 to ch32) 0 = do not insert data from the idle-code array into the receive data stream 1 = insert data from the idle-code array into the receive data stream downloaded from: http:///
ds2155 101 of 238 18. channel blocking registers the receive channel blocking registers (rcbr1/ rcbr2/rcbr3/rcbr4) and the transmit channel blocking registers (tcbr1/tcbr2/tcbr3/tcbr4) cont rol rchblk and tchblk pins, respectively. the rchblk and tchblk pins are us er-programmable outputs that can be forced either high or low during individual channels. these out puts can be used to block clocks to a usart or lapd controller in isdn-pri applications. when the appropriate bits are set to a 1, the rchbl k and tchblk pins are held high during the entire corres ponding channel time. channels 25 through 32 are ignored when the ds2155 is operated in the t1 mode. register name: rcbr1 register description: receive channel blocking register 1 register address: 88h bit # 7 6 5 4 3 2 1 0 name ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive channels 1 to 8 channel blocking control bits (ch1 to ch8) 0 = force the rchblk pin to remain low during this channel time 1 = force the rchblk pin high during this channel time register name: rcbr2 register description: receive channel blocking register 2 register address: 89h bit # 7 6 5 4 3 2 1 0 name ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive channels 9 to 16 channel blocking control bits (ch9 to ch16) 0 = force the rchblk pin to remain low during this channel time 1 = force the rchblk pin high during this channel time downloaded from: http:///
ds2155 102 of 238 register name: rcbr3 register description: receive channel blocking register 3 register address: 8ah bit # 7 6 5 4 3 2 1 0 name ch24 ch23 ch22 ch 21 ch20 ch19 ch18 ch17 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive channels 17 to 24 channel blocking control bits (ch17 to ch24) 0 = force the rchblk pin to remain low during this channel time 1 = force the rchblk pin high during this channel time register name: rcbr4 register description: receive channel blocking register 4 register address: 8bh bit # 7 6 5 4 3 2 1 0 name ch32 ch31 ch30 ch 29 ch28 ch27 ch26 ch25 default 0 0 0 0 0 0 0 0 bits 0 to 7/receive channels 25 to 32 channel blocking control bits (ch25 to ch32) 0 = force the rchblk pin to remain low during this channel time 1 = force the rchblk pin high during this channel time downloaded from: http:///
ds2155 103 of 238 register name: tcbr1 register description: transmit channel blocking register 1 register address: 8ch bit # 7 6 5 4 3 2 1 0 name ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 default 0 0 0 0 0 0 0 0 bits 0 to 7/transmit channels 1 to 8 channel blocking control bits (ch1 to ch8) 0 = force the tchblk pin to remain low during this channel time 1 = force the tchblk pin high during this channel time register name: tcbr2 register description: transmit channel blocking register 2 register address: 8dh bit # 7 6 5 4 3 2 1 0 name ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 default 0 0 0 0 0 0 0 0 bits 0 to 7/transmit channels 9 to 16 channel blocking control bits (ch9 to ch16) 0 = force the tchblk pin to remain low during this channel time 1 = force the tchblk pin high during this channel time register name: tcbr3 register description: transmit channel blocking register 3 register address: 8eh bit # 7 6 5 4 3 2 1 0 name ch24 ch23 ch22 ch 21 ch20 ch19 ch18 ch17 default 0 0 0 0 0 0 0 0 bits 0 to 7/transmit channels 17 to 24 channel blocking control bits (ch17 to ch24) 0 = force the tchblk pin to remain low during this channel time 1 = force the tchblk pin high during this channel time register name: tcbr4 register description: transmit channel blocking register 4 register address: 8fh bit # 7 6 5 4 3 2 1 0 name ch32 ch31 ch30 ch 29 ch28 ch27 ch26 ch25 default 0 0 0 0 0 0 0 0 bits 0 to 7/transmit channels 25 to 32 channel blocking control bits (ch25 to ch32) 0 = force the tchblk pin to remain low during this channel time 1 = force the tchblk pin high during this channel time downloaded from: http:///
ds2155 104 of 238 19. elastic stores operation the ds2155 contains dual two-frame elastic stores, one for the receive direction and one for the transmit direction. both elastic stores are fully independent. the transmit and receive-side elastic stores can be enabled/disabled independently of each other. also, each elastic store can interf ace to either a 1.544mhz or 2.048mhz/4.096mhz/8.192mhz/16.384mhz backplane without regard to the backplane rate the other elastic store is interfacing to. the elastic stores have two main purposes. firstly, they can be us ed for rate conversion. when the ds2155 is in the t1 mode, the elastic stores can rate-convert the t1 data stream to a 2.048mhz backplane. in e1 mode, the elasti c store can rate-convert the e1 data stream to a 1.544mhz backplane. secondly, they can be used to absorb the differences in frequency and phase betw een the t1 or e1 data stream and an asynchronous (i.e., not locked) bac kplane clock, which can be 1.544mhz or 2.048mhz. in this mode, the elastic stores manage the rate differe nce and perform controlled slips, deleting or repeating frames of data in order to manage the differe nce between the network and the backplane. the elastic stores can also be used to multiplex t1 or e1 data streams into higher backplane rates, which is the ibo discussed in section 28 . downloaded from: http:///
ds2155 105 of 238 register name: escr register description: elastic store control register register address: 4fh bit # 7 6 5 4 3 2 1 0 name tesalgn tesr tesmdm tese resalgn resr resmdm rese default 0 0 0 0 0 0 0 0 bit 0/receive elastic store enable (rese) 0 = elastic store is bypassed 1 = elastic store is enabled bit 1/receive elastic store minimum-delay mode (resmdm). see section 19.4 for details. 0 = elastic stores operate at full two-frame depth 1 = elastic stores operate at 32-bit depth bit 2/receive elastic store reset (resr). setting this bit from a 0 to a 1 forc es the read and write pointers into opposite frames, maximizing the delay through the receive elastic store. it should be toggled after rsysclk has been applied and is stable. see section 19.3 for details. do not leave this bit set high. bit 3/receive elastic store align (resalgn). setting this bit from a 0 to a 1 forces the receive elastic stores write/read pointers to a minimum separation of half a frame. no action is taken if the pointer separation is already greater or equal to half a frame. if pointer separation is less than half a frame, the command is executed and the data is disrupted. it should be toggled after rsysclk has been applied and is stable. must be cleared and set again for a subsequent align. see section 19.3 for details. bit 4/transmit elastic store enable (tese) 0 = elastic store is bypassed 1 = elastic store is enabled bit 5/transmit elastic store minimum-delay mode (tesmdm). see section 19.4 for details. 0 = elastic stores operate at full two-frame depth 1 = elastic stores operate at 32-bit depth bit 6/transmit elastic store reset (tesr). setting this bit from a 0 to a 1 forces the read and write pointers into opposite frames, maximizing the delay through the transmit elas tic store. transmit data is lost during the reset. it should be toggled after tsysclk has been applied and is stable. see section 19.3 for details. do not leave this bit set high. bit 7/transmit elastic store align (tesalgn). setting this bit from a 0 to a 1 forces the transmit elastic stores write/read pointers to a minimum separation of half a frame. no action is taken if the pointer separation is already greater or equal to half a frame. if pointer separation is less than half a frame, the command is executed and the data is disrupted. it should be toggled after tsysclk has been applied and is stable. it must be cleared and set again for a subsequent align. see section 19.3 for details. downloaded from: http:///
ds2155 106 of 238 register name: sr5 register description: status register 5 register address: 1eh bit # 7 6 5 4 3 2 1 0 name tesf tesem tslip resf resem rslip default 0 0 0 0 0 0 0 0 bit 0/receive elastic store slip-occurrence event (rslip). set when the receive elastic store has either repeated or deleted a frame. bit 1/receive elastic store empty event (resem). set when the receive elastic store buffer empties and a frame is repeated. bit 2/receive elastic store full event (resf). set when the receive elastic store buffer fills and a frame is deleted. bit 3/transmit elastic store slip-occurrence event (tslip). set when the transmit elastic store has either repeated or deleted a frame. bit 4/transmit elastic store empty event (tesem). set when the transmit elastic store buffer empties and a frame is repeated. bit 5/transmit elastic store full event (tesf). set when the transmit elastic store buffer fills and a frame is deleted. register name: imr5 register description: interrupt mask register 5 register address: 1fh bit # 7 6 5 4 3 2 1 0 name tesf tesem tslip resf resem rslip default 0 0 0 0 0 0 0 0 bit 0/receive elastic store slip-occurrence event (rslip) 0 = interrupt masked 1 = interrupt enabled bit 1/receive elastic store empty event (resem) 0 = interrupt masked 1 = interrupt enabled bit 2/receive elastic store full event (resf) 0 = interrupt masked 1 = interrupt enabled bit 3/transmit elastic store slip-occurrence event (tslip) 0 = interrupt masked 1 = interrupt enabled bit 4/transmit elastic store empty event (tesem) 0 = interrupt masked 1 = interrupt enabled bit 5/transmit elastic store full event (tesf) 0 = interrupt masked 1 = interrupt enabled downloaded from: http:///
ds2155 107 of 238 19.1 receive side see the iocr1 and iocr2 registers for inform ation about clock and i/o configurations. if the receive-side elastic store is enabled, then the user must provide either a 1.544mhz or 2.048mhz clock at the rsysclk pin. for higher rate system clock applications, see the interleaved pcm bus operation in section 28 . the user has the option of either providing a frame/multiframe sync at the rsync pin or having the rsync pin provide a pul se on frame/multiframe boundaries. if signaling reinsertion is enabled, signaling data in ts16 is realigned to the multiframe sync input on rsync. otherwise, a multiframe sync input on rsync is treated as a simple frame boundary by the elastic store. the framer always indicates frame boundaries on the network side of the elastic store by the rfsync output, whether the elastic store is enabled or not. multiframe boundari es are always indicated by the rmsync output. if the elastic store is enable d, then rmsync outputs the multiframe boundary on the backplane side of the elastic store. 19.1.1 t1 mode if the user selects to apply a 2.048mhz clock to the rsysclk pin, th en the data output at rser is forced to all 1s every fourth channel and the f-bit is passed into the msb of ts0. hence, channels 1 (bits 1C7), 5, 9, 13, 17, 21, 25, and 29 [time slots 0 (bits 1C7), 4, 8, 12, 16, 2 0, 24, and 28] are forced to a 1. also, in 2.048mhz applications, th e rchblk output is forced high dur ing the same channels as the rser pin. this is useful in t1-to- e1 conversion applications. if the tw o-frame elastic buffer either fills or empties, a controlled slip occurs. if the buffer emp ties, then a full frame of data is repeated at rser, and the sr5.0 and sr5.1 bits are set to a 1. if the buffer fills, then a full frame of data is deleted, and the sr5.0 and sr5.2 bits are set to a 1. 19.1.2 e1 mode if the elastic store is enabled, then either cas or crc4 multiframe boundaries are indicated through the rmsync output. if the user select s to apply a 1.544mhz clock to th e rsysclk pin, then every fourth channel of the received e1 data is deleted and an f- bit position, which is forced to 1, is inserted. hence, channels 1, 5, 9, 13, 17, 21, 25, and 29 (time slots 0, 4, 8, 12, 16, 20, 24, and 28) are deleted from the received e1 data stream. also, in 1.544mhz applica tions, the rchblk output is not active in channels 25 through 32 (i.e., rcbr4 is not activ e). if the two-frame elastic buffe r either fills or empties, a controlled slip occurs. if the buffer empties, then a full frame of data is repeated at rser, and the sr5.0 and sr5.1 bits are set to a 1. if the buffer fills, then a full frame of data is deleted, and the sr5.0 and sr5.2 bits are set to a 1. 19.2 transmit side see the iocr1 and iocr2 registers for inform ation about clock and i/o configurations. the operation of the transmit elastic store is very sim ilar to the receive side. if the transmit-side elastic store is enabled, a 1.544mhz or 2.048mhz clock can be applied to the tsys clk input. for higher rate system clock applications, see interleaved pcm bus operation in section 28 . controlled slips in the transmit elastic store are reported in the sr5.3 bit, and the direction of the slip is reported in the sr5.4 and sr5.5 bits. if hardware signaling inser tion is not enabled, ccr 3.7 should be set = 1. downloaded from: http:///
ds2155 108 of 238 19.2.1 t1 mode if the user selects to apply a 2.04 8mhz clock to the tsysclk pin, then the data input at tser is ignored every fourth channel. therefore channels 1, 5, 9, 13, 17, 21, 25, and 29 (time slots 0, 4, 8, 12, 16, 20, 24, and 28) are ignored. the user can supply frame or multiframe sync pulse to the tssync input. also, in 2.048mhz applications, th e tchblk output is forced high du ring the channels ignored by the framer. 19.2.2 e1 mode a 1.544mhz or 2.048mhz clock can be applied to the tsysclk input. the user must supply a frame sync pulse or a multiframe sync pulse to the tssync input. 19.3 elastic stores initialization there are two elastic store initializa tions that can be used to improve performance in certain applications, elastic store reset and elastic store align. both of these involve the mani pulation of the elas tic stores read and write pointers and are useful primarily in synchronous applications (rsysclk/tsysclk are locked to rclk/tclk, respectively) (table 19-a ). table 19-a. elastic store delay after initialization initialization register bit delay receive elastic store reset transmit elastic store reset escr.2 escr.6 8 clocks < delay < 1 frame 1 frame < delay < 2 frames receive elastic store align transmit elastic store align escr.3 escr.7 ? frame < delay < 1 ? frames ? frame < delay < 1 ? frames 19.4 minimum delay mode elastic store minimum delay mode can be used when the elastic store s system clock is locked to its network clock (i.e., rclk locked to rsysclk for th e receive side and tclk locked to tsysclk for the transmit side). escr.5 and escr.1 enable the transmit and receive elastic store minimum delay modes. when enabled, the elastic stores are forced to a maximum depth of 32 bits instead of the normal two-frame depth. this feature is us eful primarily in app lications that interf ace to a 2.048mhz bus. certain restrictions apply when minimum delay mode is used. in addition to the restriction mentioned above, rsync must be configured as an output when the receive elastic stor e is in minimum delay mode; tsync must be configured as an output when transmit mini mum delay mode is enabled. in a typical application, rsysclk a nd tsysclk are locked to rclk, and rsync (frame output mode) is connected to tssync (frame input mode ). all of the slip contention logic in the framer is disabled (since slips cannot occur). on power-up, after the rsysclk and tsysclk si gnals have locked to their respective network clock signals, the elastic store reset bits (escr.2 and es cr.6) should be toggled from a 0 to a 1 to ensure proper operation. downloaded from: http:///
ds2155 109 of 238 20. g.706 intermediate crc-4 updating (e1 mode only) the ds2155 can implement the g.706 crc-4 recalculation at intermediate path po ints. when this mode is enabled, the data stream presented at tser already has the fas/nfas, crc multiframe alignment word, and crc-4 checksum in time slot 0. the user can modify the sa bit positions. this change in data content is used to modify the crc-4 checksum. this modification, however, doe s not corrupt any error information the original crc-4 checksum may contai n. in this mode of operation, tsync must be configured to multiframe mode. the data at tser must be aligned to the tsync signal. if tsync is an input, then the user must assert tsync aligned at the beginning of the multiframe relative to tser. if tsync is an output, the user must multif rame-align the data presented to tser. figure 20-1. crc-4 recalculate method tser xor crc-4 calculator extract old crc-4 code insert new crc-4 code modify sa bit positions new sa bit data + tposo/tnego downloaded from: http:///
ds2155 110 of 238 21. t1 bit-oriented co de (boc) controller the ds2155 contains a boc generator on the transmit side and a boc detector on the receive side. the boc function is available only in t1 mode. 21.1 transmit boc bits 0 to 5 in the tfdl register contain the boc message to be transmitted. setting bocc.0 = 1 causes the transmit boc controller to imme diately begin inserting the boc sequence into the fdl bit position. the transmit boc controller automatically provides the abort sequence. boc messages are transmitted as long as bocc.0 is set. transmit a boc 1) write 6-bit code into the tfdl register. 2) set the sboc bit in bocc = 1. 21.2 receive boc the receive boc function is enab led by setting bocc.4 = 1. the rfdl register now operates as the receive boc message and information register. the lower six bits of the rfdl register (boc message bits) are preset to all 1s. when the boc bits change state, the bo c change-of-state indicator, sr8.0, alerts the host. the host then reads the rfdl regist er to get the boc status and message. a change-of- state occurs when either a new boc code has been present for a time determined by the receive boc filter bits rbf0 and rbf1 in the bocc regi ster, or a nonvalid code is being received. receive a boc 1) set integration time through bocc.1 and bocc.2. 2) enable the receive boc function (bocc.4 = 1). 3) enable interrupt (imr8.0 = 1). 4) wait for interrupt to occur. 5) read the rfdl register. 6) if sr2.7 = 1, then a valid boc message was received. C the lower six bits of the rfdl register comprise the message. downloaded from: http:///
ds2155 111 of 238 register name: bocc register description: boc control register register address: 37h bit # 7 6 5 4 3 2 1 0 name rboce rbr rbf1 rbf0 sboc default 0 0 0 0 0 0 0 0 bit 0/send boc (sboc). set = 1 to transmit the boc code placed in bits 0 to 5 of the tfdl register. bits 1 and 2/receive boc filter bits (rbf0, rbf1). the boc filter sets the number of consecutive patterns that must be received without error prior to an indication of a valid message. rbf1 rbf0 consecutive boc codes for valid sequence identification 0 0 none 0 1 3 1 0 5 1 1 7 bit 3/receive boc reset (rbr). a 0-to-1 transition resets the boc circuitry. must be cleared and set again for a subsequent reset. bit 4/receive boc enable (rboce). enables the receive boc function. the rfdl register reports the received boc code and two information bits when this bit is set. 0 = receive boc function disabled 1 = receive boc function enabled; the rfdl register reports boc messages and information bits 5 to 7/unused, must be set to 0 for proper operation register name: rfdl register description: receive fdl register register address: c0h bit # 7 6 5 4 3 2 1 0 name rboc5 rboc4 rboc3 rboc2 rboc1 rboc0 default 0 0 0 0 0 0 0 0 rfdl register bit definitions when bocc.4 = 1: bit 0 / boc bit 0 (rboc0) bit 1/boc bit 1 (rboc1) bit 2 / boc bit 2 (rboc2) bit 3/boc bit 3 (rboc3) bit 4/boc bit 4 (rboc4) bit 5/boc bit 5 (rboc5) bits 6, 7/this bit position is unused when bocc.4 = 1. downloaded from: http:///
ds2155 112 of 238 register name: sr8 register description: status register 8 register address: 24h bit # 7 6 5 4 3 2 1 0 name bocc rfdlad rfdlf tfdle rmtch rboc default 0 0 0 0 0 0 0 0 bit 0/receive boc detector change-of-state event (rboc). set whenever the boc detector sees a change of state to a valid boc. the setting of this bit prompts the user to read the rfdl register. bit 1/receive fdl match event (rmtch). set whenever the contents of the rfdl register matches rfdlm1 or rfdlm2. bit 2/tfdl register empty event (tfdle). set when the transmit fdl buffer (tfdl) empties. bit 3/rfdl register full event (rfdlf). set when the receive fdl buffer (rfdl) fills to capacity. bit 4/rfdl abort detect event (rfdlad). set when eight consecutive 1s are received on the fdl. bit 5/boc clear event (bocc). set when 30 fdl bits occur without an abort sequence. register name: imr8 register description: interrupt mask register 8 register address: 25h bit # 7 6 5 4 3 2 1 0 name bocc rfdlad rfdlf tfdle rmtch rboc default 0 0 0 0 0 0 0 0 bit 0/receive boc detector change-of-state event (rboc) 0 = interrupt masked 1 = interrupt enabled bit 1/receive fdl match event (rmtch) 0 = interrupt masked 1 = interrupt enabled bit 2/tfdl register empty event (tfdle) 0 = interrupt masked 1 = interrupt enabled bit 3/rfdl register full event (rfdlf) 0 = interrupt masked 1 = interrupt enabled bit 4/rfdl abort detect event (rfdlad) 0 = interrupt masked 1 = interrupt enabled bit 5/boc clear event (bocc) 0 = interrupt masked 1 = interrupt enabled downloaded from: http:///
ds2155 113 of 238 22. additional (sa) and international (si) bit operation (e1 only) when operated in the e1 mode, the ds2155 provides three methods for accessing the sa and the si bits. the first method involves a hardware scheme th at uses the rlink/rlcl k and tlink/tlclk pins (section 22.1 ). the second method involves using the inte rnal raf/rnaf and taf/tnaf registers (section 22.2 ). the third method, which is covered in section 22.3 , involves an expanded version of the second method. 22.1 method 1: hardware scheme on the receive side, all of the received data is repo rted at the rlink pin. usi ng the e1rcr2 register, the user can control the rlclk pin to pulse during any combin ation of sa bits. this allows the user to create a clock that can be used to capture the needed sa bits. if rsync is programmed to output a frame boundary, it identifies the si bits. on the transmit side, the individual sa bits can be eith er sourced from the intern al tnaf register (section 22.2 ) or externally from the tlink pin. using the e1t cr2 register, the framer can be programmed to source any combination of the sa bits from the tli nk pin. si bits can be sampled through the tser pin if by setting e1tcr1.4 = 0. 22.2 method 2: internal register scheme based on double-frame on the receive side, the raf and rnaf registers always report the data as it received in the sa and si bit locations. the raf and rnaf registers are updated on align-frame boundaries. the setting of the receive align frame bit in status register 4 (sr4.0) indicates that the contents of the raf and rnaf have been updated. the host can use the sr4.0 bit to know when to read the raf and rnaf registers. the host has 250s to retrieve the data before it is lost. on the transmit side, data is sampled from the taf and tnaf registers with the setting of the transmit align frame bit in status register 4 (sr4.3). the host can use the sr4.3 bit to know when to update the taf and tnaf registers. it has 250s to update the data or else the old data is retransmitted . if the taf and tnaf registers are only being used to source the align frame and nonalign frame-sync patterns, then the host need only write once to these registers . data in the si bit position is overwritten if either the framer is (1) programmed to source the si bits from the tser pin, (2) in the crc4 mode, or (3) has automatic e-bit insertion enabled. data in the sa bit position is overwritten if any of the e1tcr2.3 to e1tcr2.7 bits are set to 1. downloaded from: http:///
ds2155 114 of 238 register name: raf register description: receive align frame register register address: c6h bit # 7 6 5 4 3 2 1 0 name si 0 0 1 1 0 1 1 default 0 0 0 0 0 0 0 0 bit 0/frame alignment signal bit (1) bit 1/frame alignment signal bit (1) bit 2/frame alignment signal bit (0) bit 3/frame alignment signal bit (1) bit 4/frame alignment signal bit (1) bit 5/frame alignment signal bit (0) bit 6/frame alignment signal bit (0) bit 7/international bit (si) register name: rnaf register description: receive nonalign frame register register address: c7h bit # 7 6 5 4 3 2 1 0 name si 1 a sa4 sa5 sa6 sa7 sa8 default 0 0 0 0 0 0 0 0 bit 0/additional bit 8 (sa8) bit 1/additional bit 7 (sa7) bit 2/additional bit 6 (sa6) bit 3/additional bit 5 (sa5) bit 4/additional bit 4 (sa4) bit 5/remote alarm (a) bit 6/frame nonalignment signal bit (1) bit 7/international bit (si) downloaded from: http:///
ds2155 115 of 238 register name: taf register description: transmit align frame register register address: d0h bit # 7 6 5 4 3 2 1 0 name si 0 0 1 1 0 1 1 default 0 0 0 1 1 0 1 1 bit 0/frame alignment signal bit (1) bit 1/frame alignment signal bit (1) bit 2/frame alignment signal bit (0) bit 3/frame alignment signal bit (1) bit 4/frame alignment signal bit (1) bit 5/frame alignment signal bit (0) bit 6/frame alignment signal bit (0) bit 7/international bit (si) register name: tnaf register description: transmit nonalign frame register register address: d1h bit # 7 6 5 4 3 2 1 0 name si 1 a sa4 sa5 sa6 sa7 sa8 default 0 1 0 0 0 0 0 0 bit 0/additional bit 8 (sa8) bit 1/additional bit 7 (sa7) bit 2/additional bit 6 (sa6) bit 3/additional bit 5 (sa5) bit 4/additional bit 4 (sa4) bit 5/remote alarm [used to transmit the alarm (a)] bit 6/frame nonalignment signal bit (1) bit 7/international bit (si) downloaded from: http:///
ds2155 116 of 238 22.3 method 3: internal register sc heme based on crc4 multiframe the receive side contains a set of eight registers (rsiaf, rsinaf, rra, and rs a4Crsa8) that report the si and sa bits as they are rece ived. these registers are updated wi th the setting of the receive crc4 multiframe bit in status register 2 (sr4.1). the host can use the sr4.1 bit to know when to read these registers. the user has 2ms to retrieve the data before it is lost. the msb of each register is the first received. see the following register descriptions for more details. the transmit side also contains a set of eight re gisters (tsiaf, tsinaf, tr a, and tsa4Ctsa8) that, through the transmit sa bit control regi ster (tsacr), can be programmed to insert si and sa data. data is sampled from these registers with th e setting of the transmit multiframe bit in status register 2 (sr4.4). the host can use the sr4.4 bit to know when to update these registers. it has 2ms to update the data or else the old data is retransmitted. the msb of each re gister is the first bit transmitted. see the following register descriptions for more details. register name: rsiaf register description: received si bits of the align frame register address: c8h bit # 7 6 5 4 3 2 1 0 name sif0 sif2 sif4 sif6 sif8 sif10 sif12 sif14 default 0 0 0 0 0 0 0 0 bit 0/si bit of frame 14 (sif14) bit 1/si bit of frame 12 (sif12) bit 2/si bit of frame 10 (sif10) bit 3/si bit of frame 8 (sif8) bit 4/si bit of frame 6 (sif6) bit 5/si bit of frame 4 (sif4) bit 6/si bit of frame 2 (sif2) bit 7/si bit of frame 0 (sif0) downloaded from: http:///
ds2155 117 of 238 register name: rsinaf register description: received si bits of the nonalign frame register address: c9h bit # 7 6 5 4 3 2 1 0 name sif1 sif3 sif5 sif7 sif9 sif11 sif13 sif15 default 0 0 0 0 0 0 0 0 bit 0/si bit of frame 15 (sif15) bit 1/si bit of frame 13 (sif13) bit 2/si bit of frame 11 (sif11) bit 3/si bit of frame 9 (sif9) bit 4/si bit of frame 7 (sif7) bit 5/si bit of frame 5 (sif5) bit 6/si bit of frame 3 (sif3) bit 7/si bit of frame 1 (sif1) register name: rra register description: received remote alarm register address: cah bit # 7 6 5 4 3 2 1 0 name rraf1 rraf3 rraf5 rraf7 rraf9 rraf11 rraf13 rraf15 default 0 0 0 0 0 0 0 0 bit 0/remote alarm bit of frame 15 (rraf15) bit 1/remote alarm bit of frame 13 (rraf13) bit 2/remote alarm bit of frame 11 (rraf11) bit 3/remote alarm bit of frame 9 (rraf9) bit 4/remote alarm bit of frame 7 (rraf7) bit 5/remote alarm bit of frame 5 (rraf5) bit 6/remote alarm bit of frame 3 (rraf3) bit 7/remote alarm bit of frame 1 (rraf1) downloaded from: http:///
ds2155 118 of 238 register name: rsa4 register description: received sa4 bits register address: cbh bit # 7 6 5 4 3 2 1 0 name rsa4f1 rsa4f3 rsa4f5 rsa4 f7 rsa4f9 rsa4f11 rsa4f13 rsa4f15 default 0 0 0 0 0 0 0 0 bit 0/sa4 bit of frame 15 (rsa4f15) bit 1/sa4 bit of frame 13 (rsa4f13) bit 2/sa4 bit of frame 11 (rsa4f11) bit 3/sa4 bit of frame 9 (rsa4f9) bit 4/sa4 bit of frame 7 (rsa4f7) bit 5/sa4 bit of frame 5(rsa4f5) bit 6/sa4 bit of frame 3 (rsa4f3) bit 7/sa4 bit of frame 1 (rsa4f1) register name: rsa5 register description: received sa5 bits register address: cch bit # 7 6 5 4 3 2 1 0 name rsa5f1 rsa5f3 rsa5f5 rsa5f7 rsa5f9 rsa5f11 rsa5f13 rsa5f15 default 0 0 0 0 0 0 0 0 bit 0/sa5 bit of frame 15 (rsa5f15) bit 1/sa5 bit of frame 13 (rsa5f13) bit 2/sa5 bit of frame 11 (rsa5f11) bit 3/sa5 bit of frame 9 (rsa5f9) bit 4/sa5 bit of frame 7 (rsa5f7) bit 5/sa5 bit of frame 5 (rsa5f5) bit 6/sa5 bit of frame 3 (rsa5f3) bit 7/sa5 bit of frame 1 (rsa5f1) downloaded from: http:///
ds2155 119 of 238 register name: rsa6 register description: received sa6 bits register address: cdh bit # 7 6 5 4 3 2 1 0 name rsa6f1 rsa6f3 rsa6f5 rsa6f7 rsa6f9 rsa6f11 rsa6f13 rsa6f15 default 0 0 0 0 0 0 0 0 bit 0/sa6 bit of frame 15 (rsa6f15) bit 1/sa6 bit of frame 13 (rsa6f13) bit 2/sa6 bit of frame 11 (rsa6f11) bit 3/sa6 bit of frame 9 (rsa6f9) bit 4/sa6 bit of frame 7 (rsa6f7) bit 5/sa6 bit of frame 5 (rsa6f5) bit 6/sa6 bit of frame 4 (rsa6f4) bit 7/sa6 bit of frame 3(rsa6f3) register name: rsa7 register description: received sa7 bits register address: ceh bit # 7 6 5 4 3 2 1 0 name rsa7f1 rsa7f3 rsa7f5 rsa7 f7 rsa7f9 rsa7f11 rsa7f13 rsa7f15 default 0 0 0 0 0 0 0 0 bit 0/sa7 bit of frame 15 (rsa7f15) bit 1/sa7 bit of frame 13 (rsa7f13) bit 2/sa7 bit of frame 11 (rsa7f11) bit 3/sa7 bit of frame 9 (rsa7f9) bit 4/sa7 bit of frame 7 (rsa7f7) bit 5/sa7 bit of frame 5 (rsa7f5) bit 6/sa7 bit of frame 3 (rsa7f3) bit 7/sa7 bit of frame 1(rsa4f1) downloaded from: http:///
ds2155 120 of 238 register name: rsa8 register description: received sa8 bits register address: cfh bit # 7 6 5 4 3 2 1 0 name rsa8f1 rsa8f3 rsa8f5 rsa8f7 rsa8f9 rsa8f11 rsa8f13 rsa8f15 default 0 0 0 0 0 0 0 0 bit 0/sa8 bit of frame 15 (rsa8f15) bit 1/sa8 bit of frame 13 (rsa8f13) bit 2/sa8 bit of frame 11 (rsa8f11) bit 3/sa8 bit of frame 9 (rsa8f9) bit 4/sa8 bit of frame 7 (rsa8f7) bit 5/sa8 bit of frame 5 (rsa8f5) bit 6/sa8 bit of frame 3 (rsa8f3) bit 7/sa8 bit of frame 1 (rsa8f1) register name: tsiaf register description: transmit si bits of the align frame register address: d2h bit # 7 6 5 4 3 2 1 0 name tsif0 tsif2 tsif4 tsif6 tsif8 tsif10 tsif12 tsif14 default 0 0 0 0 0 0 0 0 bit 0/si bit of frame 14 (tsif14) bit 1/si bit of frame 12 (tsif12) bit 2/si bit of frame 10 (tsif10) bit 3/si bit of frame 8 (tsif8) bit 4/si bit of frame 6 (tsif6) bit 5/si bit of frame 4 (tsif4) bit 6/si bit of frame 2 (tsif2) bit 7/si bit of frame 0 (tsif0) downloaded from: http:///
ds2155 121 of 238 register name: tsinaf register description: transmit si bits of the nonalign frame register address: d3h bit # 7 6 5 4 3 2 1 0 name tsif1 tsif3 tsif5 tsif7 tsif9 tsif11 tsif13 tsif15 default 0 0 0 0 0 0 0 0 bit 0/si bit of frame 15 (tsif15) bit 1/si bit of frame 13 (tsif13) bit 2/si bit of frame 11 (tsif11) bit 3/si bit of frame 9 (tsif9) bit 4/si bit of frame 7 (tsif7) bit 5/si bit of frame 5 (tsif5) bit 6/si bit of frame 3 (tsif3) bit 7/si bit of frame 1 (tsif1) register name: tra register description: transmit remote alarm register address: d4h bit # 7 6 5 4 3 2 1 0 name traf1 traf3 traf5 traf7 traf9 traf11 traf13 traf15 default 0 0 0 0 0 0 0 0 bit 0/remote alarm bit of frame 15 (traf15) bit 1/remote alarm bit of frame 13 (traf13) bit 2/remote alarm bit of frame 11 (traf11) bit 3/remote alarm bit of frame 9 (traf9) bit 4/remote alarm bit of frame 7 (traf7) bit 5/remote alarm bit of frame 5 (traf5) bit 6/remote alarm bit of frame 3 (traf3) bit 7/remote alarm bit of frame 1 (traf1) downloaded from: http:///
ds2155 122 of 238 register name: tsa4 register description: transmit sa4 bits register address: d5h bit # 7 6 5 4 3 2 1 0 name tsa4f1 tsa4f3 tsa4f5 tsa4f 7 tsa4f9 tsa4f11 tsa4f13 tsa4f15 default 0 0 0 0 0 0 0 0 bit 0/sa4 bit of frame 15 (tsa4f15) bit 1/sa4 bit of frame 13 (tsa4f13) bit 2/sa4 bit of frame 11 (tsa4f11) bit 3/sa4 bit of frame 9 (tsa4f9) bit 4/sa4 bit of frame 7 (tsa4f7) bit 5/sa4 bit of frame 5 (tsa4f5) bit 6/sa4 bit of frame 3 (tsa4f3) bit 7/sa4 bit of frame 1 (tsa4f1) register name: tsa5 register description: transmitted sa5 bits register address: d6h bit # 7 6 5 4 3 2 1 0 name tsa5f1 tsa5f3 tsa5f5 tsa5f 7 tsa5f9 tsa5f11 tsa5f13 tsa5f15 default 0 0 0 0 0 0 0 0 bit 0/sa5 bit of frame 15 (tsa5f15) bit 1/sa5 bit of frame 13 (tsa5f13) bit 2/sa5 bit of frame 11 (tsa5f11) bit 3/sa5 bit of frame 9 (tsa5f9) bit 4/sa5 bit of frame 7 (tsa5f7) bit 5/sa5 bit of frame 5 (tsa5f5) bit 6/sa5 bit of frame 3 (tsa5f3) bit 7/sa5 bit of frame 1 (tsa5f1) downloaded from: http:///
ds2155 123 of 238 register name: tsa6 register description: transmit sa6 bits register address: d7h bit # 7 6 5 4 3 2 1 0 name tsa6f1 tsa6f3 tsa6f5 tsa6f 7 tsa6f9 tsa6f11 tsa6f13 tsa6f15 default 0 0 0 0 0 0 0 0 bit 0/sa6 bit of frame 15 (tsa6f15) bit 1/sa6 bit of frame 13 (tsa6f13) bit 2/sa6 bit of frame 11 (tsa6f11) bit 3/sa6 bit of frame 9 (tsa6f9) bit 4/sa6 bit of frame 7 (tsa6f7) bit 5/sa6 bit of frame 5 (tsa6f5) bit 6/sa6 bit of frame 3 (tsa6f3) bit 7/sa6 bit of frame 1 (tsa6f1) register name: tsa7 register description: transmit sa7 bits register address: d8h bit # 7 6 5 4 3 2 1 0 name tsa7f1 tsa7f3 tsa7f5 tsa7f 7 tsa7f9 tsa7f11 tsa7f13 tsa7f15 default 0 0 0 0 0 0 0 0 bit 0/sa7 bit of frame 15 (tsa7f15) bit 1/sa7 bit of frame 13 (tsa7f13) bit 2/sa7 bit of frame 11 (tsa7f11) bit 3/sa7 bit of frame 9 (tsa7f9) bit 4/sa7 bit of frame 7 (tsa7f7) bit 5/sa7 bit of frame 5 (tsa7f5) bit 6/sa7 bit of frame 3 (tsa7f3) bit 7/sa7 bit of frame 1 (tsa4f1) downloaded from: http:///
ds2155 124 of 238 register name: tsa8 register description: transmit sa8 bits register address: d9h bit # 7 6 5 4 3 2 1 0 name tsa8f1 tsa8f3 tsa8f5 tsa8f 7 tsa8f9 tsa8f11 tsa8f13 tsa8f15 default 0 0 0 0 0 0 0 0 bit 0/sa8 bit of frame 15 (tsa8f15) bit 1/sa8 bit of frame 13 (tsa8f13) bit 2/sa8 bit of frame 11 (tsa8f11) bit 3/sa8 bit of frame 9 (tsa8f9) bit 4/sa8 bit of frame 7 (tsa8f7) bit 5/sa8 bit of frame 5 (tsa8f5) bit 6/sa8 bit of frame 3 (tsa8f3) bit 7/sa8 bit of frame 1 (tsa8f1) downloaded from: http:///
ds2155 125 of 238 register name: tsacr register description: transmit sa bit control register register address: dah bit # 7 6 5 4 3 2 1 0 name siaf sinaf ra sa4 sa5 sa6 sa7 sa8 default 0 0 0 0 0 0 0 0 bit 0/additional bit 8 insertion control bit (sa8) 0 = do not insert data from the tsa8 register into the transmit data stream 1 = insert data from the tsa8 register into the transmit data stream bit 1/additional bit 7 insertion control bit (sa7) 0 = do not insert data from the tsa7 register into the transmit data stream 1 = insert data from the tsa7 register into the transmit data stream bit 2/additional bit 6 insertion control bit (sa6) 0 = do not insert data from the tsa6 register into the transmit data stream 1 = insert data from the tsa6 register into the transmit data stream bit 3/additional bit 5 insertion control bit (sa5) 0 = do not insert data from the tsa5 register into the transmit data stream 1 = insert data from the tsa5 register into the transmit data stream bit 4/additional bit 4 insertion control bit (sa4) 0 = do not insert data from the tsa4 register into the transmit data stream 1 = insert data from the tsa4 register into the transmit data stream bit 5/remote alarm insertion control bit (ra) 0 = do not insert data from the tra register into the transmit data stream 1 = insert data from the tra register into the transmit data stream bit 6/international bit in nonalign frame insertion control bit (sinaf) 0 = do not insert data from the tsinaf register into the transmit data stream 1 = insert data from the tsinaf register into the transmit data stream bit 7/international bit in align frame insertion control bit (siaf) 0 = do not insert data from the tsiaf register into the transmit data stream 1 = insert data from the tsiaf register into the transmit data stream downloaded from: http:///
ds2155 126 of 238 23. hdlc controllers this device has two enhanced hdlc controlle rs, hdlc #1 and hdlc #2. each controller is configurable for use with time slots, sa4 to sa8 bits (e1 mode), or the fdl (t1 mode). each hdlc controller has 128-byte buffers in the transmit and receive paths. when used with time slots, the user can select any time slot or multiple time slots, conti guous or noncontiguous, as well as any specific bits within the time slot(s) to assign to the hdlc controllers. the user must not map both transmit hdlc controllers to the same sa bits, time slots or, in t1 mode, map both controllers to the fdl. hdlc #1 and hdlc #2 are identical in operation and therefore the following operational description refe rs only to a singular controller. the hdlc controller performs the entire necessary overhead for generating and receiving performance report messages (prms) as described in ansi t1.403 and the messages as described in at&t tr54016. the hdlc controller automatically generates and detects flags, ge nerates and checks the crc check sum, generates and detects abort sequences, stuffs and destuffs zeros, and byte aligns to the data stream. the 128-byte buffers in the hdlc cont roller are large enough to allow a full pr m to be received or transmitted without host intervention. 23.1 basic operation details the hdlc registers are divided into four groups: control/configura tion, status/information, mapping, and fifos. table 23-a lists these registers by group. 23.2 hdlc configuration the hxtc and hxrc registers perform the basic c onfiguration of the hdlc controllers. operating features such as crc generation, zero stuffer, transmit and rece ive hdlc mapping options, and idle flags are selected here. these regist ers also reset the hdlc controllers. downloaded from: http:///
ds2155 127 of 238 table 23-a. hdlc controller registers register function control and configuration h1tc , hdlc #1 transmit control register h2tc , hdlc #2 transmit control register general control over the transmit hdlc controllers h1rc , hdlc #1 receive control register h2rc , hdlc #2 receive control register general control over the receive hdlc controllers h1fc , hdlc #1 fifo control register h2fc , hdlc #2 fifo control register sets high watermark for receiver and low watermark for transmitter status and information sr6 , hdlc #1 status register sr7 , hdlc #2 status register key status information for both transmit and receive directions imr6 , hdlc #1 interrupt mask register imr7 , hdlc #2 interrupt mask register selects which bits in the status registers (sr7 and sr8) cause interrupts info4 , hdlc #1 and #2 information register info5 , hdlc #1 information register info6 , hdlc #2 information register information about hdlc controller h1rpba , hdlc #1 receive packet bytes available register h2rpba , hdlc #2 receive packet bytes available register indicates the number of bytes that can be read from the receive fifo h1tfba , hdlc #1 transmit fifo buffer available register h2tfba , hdlc #2 transmit fifo buffer available register indicates the number of bytes that can be written to the transmit fifo mapping h1rcs1, h1rcs2, h1rcs3, h1rcs4, hdlc #1 receive channel select registers h2rcs1, h2rcs2, h2rcs3, h2rcs4, hdlc #2 receive channel select registers selects which channels are mapped to the receive hdlc controller h1rtsbs, hdlc #1 receive ts/sa bit select register h2rtsbs, hdlc #2 receive ts/sa bit select register selects which bits in a channel are used or which sa bits are used by the receive hdlc controller h1tcs1, h1tcs2, h1tcs3, h1tcs4, hdlc #1 transmit channel select registers h2tcs1, h2tcs2, h2tcs3, h2tcs4, hdlc #2 transmit channel select registers selects which channels are mapped to the transmit hdlc controller h1ttsbs, hdlc # 1 transmit ts/sa bit select register h2ttsbs, hdlc # 2 transmit ts/sa bit select register selects which bits in a channel are used or which sa bits are used by the transmit hdlc controller fifos h1rf , hdlc #1 receive fifo register h2rf , hdlc #1 receive fifo register access to 128-byte receive fifo h1tf , hdlc #1 transmit fifo register h2tf , hdlc #2 transmit fifo register access to 128-byte transmit fifo downloaded from: http:///
ds2155 128 of 238 register name: h1tc, h2tc register description: hdlc #1 transmit control hdlc #2 transmit control register address: 90h, a0h bit # 7 6 5 4 3 2 1 0 name nofs teoml thr thms tfs teom tzsd tcrcd default 0 0 0 0 0 0 0 0 bit 0/transmit crc defeat (tcrcd). a 2-byte crc code is automatically appended to the outbound message. this bit can be used to disable the crc function. 0 = enable crc generation (normal operation) 1 = disable crc generation bit 1/transmit zero-stuffer defeat (tzsd). the zero-stuffer function automatically inserts a 0 in the message field (between the flags) after five consecutive 1s to prev ent the emulation of a flag or abort sequence by the data pattern. the receiver automatically removes (destuffs ) any 0 after five 1s in the message field. 0 = enable the zero stuffer (normal operation) 1 = disable the zero stuffer bit 2/transmit end of message (teom). should be set to a 1 just before the last data byte of an hdlc packet is written into the transmit fifo at hxtf. if not disabled through tcrcd, the transmitter automatically appends a 2- byte crc code to the end of the message. bit 3/transmit flag/idle select (tfs). this bit selects the intermessage fill char acter after the closing and before the opening flags (7eh). 0 = 7eh 1 = ffh bit 4/transmit hdlc mapping select (thms) 0 = transmit hdlc assigned to channels 1 = transmit hdlc assigned to fdl (t1 mode), sa bits (e1 mode) bit 5/transmit hdlc reset (thr). resets the transmit hdlc controller and flushes the transmit fifo. an abort followed by 7eh or ffh flags/idle is transmitted un til a new packet is initiated by writing new data into the fifo. must be cleared and set again for a subsequent reset. 0 = normal operation 1 = reset transmit hdlc controller and flush the transmit fifo bit 6/transmit end of message and loop (teoml). to loop on a message, this bit should be set to a 1 just before the last data byte of an hdlc packet is written into the transmit fifo. the me ssage repeats until the user clears this bit or a new message is written to the tran smit fifo. if the host clears the bit, the looping message completes, then flags are transmitted until a new message is written to the fifo. if the host terminates the loop by writing a new message to the fifo, the loop terminates, one or two flags are transmitted, and the new message starts. if not disabled through tcrcd, the transmitter automa tically appends a 2-byte crc code to the end of all messages. this is useful for transmitting consecutive ss7 fisus without host intervention. bit 7/number of flags select (nofs) 0 = send one flag between consecutive messages 1 = send two flags between consecutive messages downloaded from: http:///
ds2155 129 of 238 register name: h1rc, h2rc register description: hdlc #1 receive control hdlc #2 receive control register address: 31h, 32h bit # 7 6 5 4 3 2 1 0 name rhr rhms rsfd default 0 0 0 0 0 0 0 0 bit 0/receive ss7 fill-in signal unit delete (rsfd) 0 = normal operation; all fisus are stored in the receive fifo and reported to the host. 1 = when a consecutive fisu having the same bsn the previous fisu is detected, it is deleted without host intervention. bits 1 to 5/unused, must be set to 0 or proper operation bit 6/receive hdlc mapping select (rhms) 0 = receive hdlc assigned to channels 1 = receive hdlc assigned to fdl (t1 mode), sa bits (e1 mode) bit 7/receive hdlc reset (rhr). resets the receive hdlc controller and flushes the receive fifo. must be cleared and set again for a subsequent reset. 0 = normal operation 1 = reset receive hdlc controller and flush the receive fifo downloaded from: http:///
ds2155 130 of 238 23.2.1 fifo control the fifo control register (hxfc) controls and sets the watermarks for the transmit and receive fifos. bits 3, 4, and 5 set the transmit low watermark and the lower 3 bits set the receive high watermark. when the transmit fifo empties below the low watermark, the tlwm bit in the appropriate hdlc status register sr6 or sr7 is set. tlwm is a real- time bit and remains set as long as the transmit fifos read pointer is below the watermark. if enabled, th is condition can also caus e an interrupt through the int pin. when the receive fifo fills above the high waterm ark, the rhwm bit in the appropriate hdlc status register is set. rhwm is a real- time bit and remains set as long as th e receive fifos write pointer is above the watermark. if enabled, this conditi on can also cause an interrupt through the int pin. register name: h1fc, h2fc register description: hdlc # 1 fifo control hdlc # 2 fifo control register address: 91h, a1h bit # 7 6 5 4 3 2 1 0 name tflwm2 tflwm1 tflwm0 rfhwm2 rfhwm1 rfhwm0 default 0 0 0 0 0 0 0 0 bits 0 to 2/receive fifo high-watermark select (rfhwm0 to rfhwm2) rfhwm2 rfhwm1 rfhwm0 receive fifo watermark (bytes) 0 0 0 4 0 0 1 16 0 1 0 32 0 1 1 48 1 0 0 64 1 0 1 80 1 1 0 96 1 1 1 112 bits 3 to 5/transmit fifo low-watermark select (tflwm0 to tflwm2) tflwm2 tflwm1 tflwm0 transmit fifo watermark (bytes) 0 0 0 4 0 0 1 16 0 1 0 32 0 1 1 48 1 0 0 64 1 0 1 80 1 1 0 96 1 1 1 112 bits 6, 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 131 of 238 23.3 hdlc mapping 23.3.1 receive the hdlc controllers must be assigned a space in the t1/e1 bandwidth in which they transmit and receive data. the controllers can be mapped to either the fdl (t1), sa bits (e1), or to channels. if mapped to channels, then any channel or combination of channels, contiguous or not, can be assigned to an hdlc controller. when assigned to a channel(s), a ny combination of bits within the channel(s) can be avoided. the hxrcs1Chxrcs4 registers are used to assign the receive cont rollers to channels 1C24 (t1) or 1C32 (e1) according to the following table: register channels hxrcs1 1C8 hxrcs2 9C16 hxrcs3 17C24 hxrcs4 25C32 register name: h1rcs1, h1rcs2, h1rcs3, h1rcs4 h2rcs1, h2rcs2, h2rcs3, h2rcs4 register description: hdlc # 1 receive channel select x hdlc # 2 receive channel select x register address: 92h, 93h, 94h, 95h a2h, a3h, a4h, a5h bit # 7 6 5 4 3 2 1 0 name rhcs7 rhcs6 rhcs5 rhcs4 rhcs3 rhcs2 rhcs1 rhcs0 default 0 0 0 0 0 0 0 0 bit 0/receive hdlc channel select bit 0 (rhcs0). select channel 1, 9, 17, or 25. bit 1/receive hdlc channel select bit 1 (rhcs1). select channel 2, 10, 18, or 26. bit 2/receive hdlc channel select bit 2 (rhcs2). select channel 3, 11, 19, or 27. bit 3/receive hdlc channel select bit 3 (rhcs3). select channel 4, 12, 20, or 28. bit 4/receive hdlc channel select bit 4 (rhcs4). select channel 5, 13, 21, or 29. bit 5/receive hdlc channel select bit 5 (rhcs5). select channel 6, 14, 22, or 30. bit 6/receive hdlc channel select bit 6 (rhcs6). select channel 7, 15, 23, or 31. bit 7/receive hdlc channel select bit 7 (rhcs7). select channel 8, 16, 24, or 32. downloaded from: http:///
ds2155 132 of 238 register name: h1rtsbs, h2rtsbs register description: hdlc # 1 receive time slot bits/sa bits select hdlc # 2 receive time slot bits/sa bits select register address: 96h, a6h bit # 7 6 5 4 3 2 1 0 name rcb8se rcb7se rcb6se rcb5se rcb4se rcb3se rcb2se rcb1se default 0 0 0 0 0 0 0 0 bit 0/receive channel bit 1 suppress enable/sa8 bit enable (rcb1se ). lsb of the channel. set to 1 to stop this bit from being used. bit 1/receive channel bit 2 suppress enable/sa7 bit enable (rcb2se). set to 1 to stop this bit from being used. bit 2/receive channel bit 3 suppress enable/sa6 bit enable (rcb3se). set to 1 to stop this bit from being used. bit 3/receive channel bit 4 suppress enable/sa5 bit enable (rcb4se). set to 1 to stop this bit from being used. bit 4/receive channel bit 5 suppress enable/sa4 bit enable (rcb5se). set to 1 to stop this bit from being used. bit 5/receive channel bit 6 suppress enable (rcb6se). set to 1 to stop this bit from being used. bit 6/receive channel bit 7 suppress enable (rcb7se). set to 1 to stop this bit from being used. bit 7/receive channel bit 8 suppress enable (rcb8se). msb of the channel. set to 1 to stop this bit from being used. downloaded from: http:///
ds2155 133 of 238 23.3.2 transmit the hxtcs1Chxtcs4 registers are us ed to assign the transmit controllers to channels 1C24 (t1) or 1C32 (e1) according to the following table. register channels hxtcs1 1C8 hxtcs2 9C16 hxtcs3 17C24 hxtcs4 25C32 register name: h1tcs1, h1tcs2, h1tcs3, h1tcs4 h2tcs1, h2tcs2, h2tcs3, h2tcs4 register description: hdlc # 1 transmit channel select hdlc # 2 transmit channel select register address: 97h, 98h, 99h, 9ah a7h, a8h, a9h, aah bit # 7 6 5 4 3 2 1 0 name thcs7 thcs6 thcs5 thcs4 thcs3 thcs2 thcs1 thcs0 default 0 0 0 0 0 0 0 0 bit 0/transmit hdlc channel select bit 0 (thcs0). select channel 1, 9, 17, or 25. bit 1/transmit hdlc channel select bit 1 (thcs1). select channel 2, 10, 18, or 26. bit 2/transmit hdlc channel select bit 2 (thcs2). select channel 3, 11, 19, or 27. bit 3/transmit hdlc channel select bit 3 (thcs3). select channel 4, 12, 20, or 28. bit 4/transmit hdlc channel select bit 4 (thcs4). select channel 5, 13, 21, or 29. bit 5/transmit hdlc channel select bit 5 (thcs5). select channel 6, 14, 22, or 30. bit 6/transmit hdlc channel select bit 6 (thcs6). select channel 7, 15, 23, or 31. bit 7/transmit hdlc channel select bit 7 (thcs7). select channel 8, 16, 24, or 32. downloaded from: http:///
ds2155 134 of 238 register name: h1ttsbs, h2ttsbs register description: hdlc # 1 transmit time slot bits/sa bits select hdlc # 2 transmit time slot bits/sa bits select register address: 9bh, abh bit # 7 6 5 4 3 2 1 0 name tcb8se tcb7se tcb6se tcb5 se tcb4se tcb3se tcb2se tcb1se default 0 0 0 0 0 0 0 0 bit 0/transmit channel bit 1 suppress enable/sa8 bit enable (tcb1se). lsb of the channel. set to 1 to stop this bit from being used. bit 1/transmit channel bit 2 suppress enable/sa7 bit enable (tcb1se). set to 1 to stop this bit from being used. bit 2/transmit channel bit 3 suppress enable/sa6 bit enable (tcb1se). set to 1 to stop this bit from being used. bit 3/transmit channel bit 4 suppress enable/sa5 bit enable (tcb1se). set to 1 to stop this bit from being used. bit 4/transmit channel bit 5 suppress enable/sa4 bit enable (tcb1se). set to 1 to stop this bit from being used. bit 5/transmit channel bit 6 suppress enable (tcb1se). set to 1 to stop this bit from being used. bit 6/transmit channel bit 7 suppress enable (tcb1se). set to 1 to stop this bit from being used. bit 7/transmit channel bit 8 suppress enable (tcb1se). msb of the channel. set to 1 to stop this bit from being used. downloaded from: http:///
ds2155 135 of 238 register name: sr6, sr7 register description: hdlc #1 status register 6 hdlc #2 status register 7 register address: 20h, 22h bit # 7 6 5 4 3 2 1 0 name tmend rpe rps rhwm rne tlwm tnf default 0 0 0 0 0 0 0 0 bit 0/transmit fifo not full condition (tnf). set when the transmit 128-byte fifo has at least 1 byte available. bit 1/transmit fifo below low-watermark condition (tlwm). set when the transmit 128-byte fifo empties beyond the low watermark as defined by the transmit low-watermark register (tlwmr). bit 2/receive fifo not empty condition (rne). set when the receive 128-byte fifo has at least 1 byte available for a read. bit 3/receive fifo above high-watermark condition (rhwm). set when the receive 128-byte fifo fills beyond the high watermark as defined by the r eceive high-watermark register (rhwmr). bit 4/receive packet-start event (rps) . set when the hdlc controller detects an opening byte. this is a latched bit and is cleared when read. bit 5/receive packet-end event (rpe). set when the hdlc controller detects either the finish of a valid message (i.e., crc check complete) or when the cont roller has experienced a me ssage fault such as a crc checking error, or an overrun condition, or an abort has b een seen. this is a latched bit and is cleared when read. bit 6/transmit message-end event (tmend). set when the transmit hdlc controller has finished sending a message. this is a latched bit and is cleared when read. downloaded from: http:///
ds2155 136 of 238 register name: imr6, imr7 register description: hdlc # 1 interrupt mask register 6 hdlc # 2 interrupt mask register 7 register address: 21h, 23h bit # 7 6 5 4 3 2 1 0 name tmend rpe rps rhwm rne tlwm tnf default 0 0 0 0 0 0 0 0 bit 0/transmit fifo not full condition (tnf) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising edge only bit 1/transmit fifo below low-watermark condition (tlwm) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising edge only bit 2/receive fifo not empty condition (rne) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising edge only bit 3/receive fifo above high-watermark condition (rhwm) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising edge only bit 4/receive packet-start event (rps) 0 = interrupt masked 1 = interrupt enabled bit 5/receive packet-end event (rpe) 0 = interrupt masked 1 = interrupt enabled bit 6/transmit message-end event (tmend) 0 = interrupt masked 1 = interrupt enabled downloaded from: http:///
ds2155 137 of 238 register name: info5, info6 register description: hdlc #1 information register hdlc #2 information register register address: 2eh, 2fh bit # 7 6 5 4 3 2 1 0 name tempty tfull rempty ps2 ps1 ps0 default 0 0 0 0 0 0 0 0 bits 0 to 2/receive packet status (ps0 to ps2) . these are real-time bits indicating the status as of the last read of the receive fifo. ps2 ps1 ps0 packet status 0 0 0 in progress 0 0 1 packet ok: packet ended with correct crc codeword 0 1 0 crc error: a closing flag was detected, preceded by a corrupt crc codeword 0 1 1 abort: packet ended because an abort signal was detected (seven or more 1s in a row). 1 0 0 overrun: hdlc controller terminated reception of packet because receive fifo is full. bit 3/receive fifo empty (rempty). a real-time bit that is set high when the receive fifo is empty. bit 4/transmit fifo full (tfull). a real-time bit that is set high when the fifo is full. bit 5/transmit fifo empty (tempty). a real-time bit that is set high when the fifo is empty. register name: info4 register description: hdlc event information register #4 register address: 2dh bit # 7 6 5 4 3 2 1 0 name h2udr h2obt h1udr h1obt default 0 0 0 0 0 0 0 0 bit 0/hdlc #1 opening byte event (h1obt). set when the next byte available in the receive fifo is the first byte of a message. bit 1/hdlc #1 transmit fi fo underrun event (h1udr). set when the transmit fifo empties out without having seen the tmend bit set. an abort is automatically sent. this bit is latched and is cleared when read. bit 2/hdlc #2 opening byte event (h2obt). set when the next byte available in the receive fifo is the first byte of a message. bit 3/hdlc #2 transmit fi fo underrun event (h2udr). set when the transmit fifo empties out without having seen the tmend bit set. an abort is automatically sent. this bit is latched and is cleared when read . downloaded from: http:///
ds2155 138 of 238 23.3.3 fifo information the transmit fifo buffer-available re gister indicates the number of byt es that can be written into the transmit fifo. the count form this register informs th e host as to how many bytes can be written into the transmit fifo without overflowing the buffer. register name: h1tfba, h2tfba register description: hdlc # 1 transmit fifo buffer available hdlc # 2 transmit fifo buffer available register address: 9fh, afh bit # 7 6 5 4 3 2 1 0 name tfba7 tfba6 tfba5 tfba4 tfba3 tfba2 tfba1 tfba0 default 0 0 0 0 0 0 0 0 bits 0 to 7/transmit fifo bytes available (tfbao to tfba7). tfba0 is the lsb. 23.3.4 receive packet-bytes available the lower 7 bits of the receive p acket-bytes available register indi cates the number of bytes (0 through 127) that can be read from the receive fifo. the va lue indicated by this regi ster (lower seven bits) informs the host as to how many bytes can be read from the receive fifo without going past the end of a message. this value refers to one of four possibilities: the first part of a packet, the continuation of a packet, the last part of a packet, or a complete packet. after reading th e number of bytes indicated by this register, the host then checks the hdlc inform ation register for detailed message status. if the value in the hxrpba register refers to th e beginning portion of a message or continuation of a message, then the msb of the hxrpba register retu rns a value of 1. this i ndicates that the host can safely read the number of bytes returned by the lowe r seven bits of the hxrpba register, but there is no need to check the information register since the packet has not yet terminated (s uccessfully or otherwise). register name: h1rpba, h2rpba register description: hdlc # 1 receive packet bytes available hdlc # 2 receive packet bytes available register address: 9ch, ach bit # 7 6 5 4 3 2 1 0 name ms rpba6 rpba5 rpba4 rpba3 rpba2 rpba1 rpba0 default 0 0 0 0 0 0 0 0 bits 0 to 6/receive fifo packet bytes available count (rpba0 to rpba6). rpba0 is the lsb. bit 7/message status (ms) 0 = bytes indicated by rpba0 through rpba6 are the end of a message. host must check the info5 or info6 register for details. 1 = bytes indicated by rpba0 through rpba6 are the beginning or continuation of a message. the host does not need to check the info5 or info6 register. downloaded from: http:///
ds2155 139 of 238 23.3.5 hdlc fifos register name: h1tf, h2tf register description: hdlc # 1 transmit fifo hdlc # 2 transmit fifo register address: 9dh, adh bit # 7 6 5 4 3 2 1 0 name thd7 thd6 thd5 thd4 thd3 thd2 thd1 thd0 default 0 0 0 0 0 0 0 0 bit 0/transmit hdlc data bit 0 (thd0). lsb of an hdlc packet data byte. bit 1/transmit hdlc data bit 1 (thd1) bit 2/transmit hdlc data bit 2 (thd2) bit 3/transmit hdlc data bit 3 (thd3) bit 4/transmit hdlc data bit 4 (thd4) bit 5/transmit hdlc data bit 5 (thd5) bit 6/transmit hdlc data bit 6 (thd6) bit 7/transmit hdlc data bit 7 (thd7). msb of an hdlc packet data byte. register name: h1rf, h2rf register description: hdlc # 1 receive fifo hdlc # 2 receive fifo register address: 9eh, aeh bit # 7 6 5 4 3 2 1 0 name rhd7 rhd6 rhd5 rhd4 rhd3 rhd2 rhd1 rhd0 default 0 0 0 0 0 0 0 0 bit 0/receive hdlc data bit 0 (rhd0). lsb of an hdlc packet data byte. bit 1/receive hdlc data bit 1 (rhd1) bit 2/receive hdlc data bit 2 (rhd2) bit 3/receive hdlc data bit 3 (rhd3) bit 4/receive hdlc data bit 4 (rhd4) bit 5/receive hdlc data bit 5 (rhd5) bit 6/receive hdlc data bit 6 (rhd6) bit 7/receive hdlc data bit 7 (rhd7). msb of an hdlc packet data byte. downloaded from: http:///
ds2155 140 of 238 23.4 receive hdlc code example the following is an example of a receive hdlc routine: 1) reset receive hdlc controller. 2) set hdlc mode, mapping, and high watermark. 3) start new message buffer. 4) enable rpe and rhwm interrupts. 5) wait for interrupt. 6) disable rpe and rhwm interrupts. 7) read hxrpba register. n = hxrpba (lower 7 bits are byte count, msb is status). 8) read (n and 7fh) bytes from receive fifo and store in message buffer. 9) read info5 register. 10) if ps2, ps1, ps0 = 000, then go to step 4. 11) if ps2, ps1, ps0 = 001, then packet terminated ok, save present message buffer. 12) if ps2, ps1, ps0 = 010, then packet terminated with crc error. 13) if ps2, ps1, ps0 = 011, then packet aborted. 14) if ps2, ps1, ps0 = 100, then fifo overflowed. 15) go to step 3. 23.5 legacy fdl support (t1 mode) 23.5.1 overview to provide backward compatibility to the older ds21x52 t1 device, the ds2155 maintains the circuitry that existed in the previous generation of the t1 fr amer. in new applications, it is recommended that the hdlc controllers and boc contro ller described in section 21 and 23 are used. 23.5.2 receive section in the receive section, the recovere d fdl bits or fs bits are shifte d bit-by-bit into the receive fdl register (rfdl). because the rfdl is 8 bits in length, it fills up every 2ms (8 x 250s). the framer signals an external microcontroller that the buffer has filled through the sr8.3 bit. if enabled through imr8.3, the int pin toggles low, indicating that the buffer has filled and needs to be read. the user has 2ms to read this data before it is lost. if the byte in the rfdl matches either of the bytes programmed into the rfdlm1 or rfdlm2 registers, then the sr8.1 bit is set to a 1 and the int pin toggles low if enabled through imr8.1. this feature al lows an external microcontroller to ignore the fdl or fs pattern until an important event occurs. the framer also contains a zero destuffer, which is controlled th rough the t1rcr2.3 bit. in both ansi t1.403 and tr54016, communications on the fdl follows a subset of an lapd protocol. the lapd protocol states that no more than five 1s should be transmitted in a row so that the data does not resemble an opening or closing flag (01111110) or an abor t signal (11111111). if enab led through t1rcr2.3, the ds2155 automatically looks for five 1s in a row, followed by a 0. if it finds such a pattern, it automatically removes the zero. if the zero destuffer s ees six or more 1s in a ro w followed by a 0, the 0 is not removed. the t1rcr2.3 bit should always be se t to a 1 when the ds2155 is extracting the fdl. refer to application note 335: ds2141a , ds2151 controlling the fdl for information about using the ds2155 in fdl applications in this legacy support mode. downloaded from: http:///
ds2155 141 of 238 register name: rfdl register description: receive fdl register register address: c0h bit # 7 6 5 4 3 2 1 0 name rfdl7 rfdl6 rfdl5 rfdl4 rfdl3 rfdl2 rfdl1 rfdl0 default 0 0 0 0 0 0 0 0 the receive fdl register (rfdl) reports the incoming fd l or the incoming fs bits. the lsb is received first. bit 0/receive fdl bit 0 (rfdl0). lsb of the received fdl code. bit 1/receive fdl bit 1 (rfdl1) bit 2/receive fdl bit 2 (rfdl2) bit 3/receive fdl bit 3 (rfdl3) bit 4/receive fdl bit 4 (rfdl4) bit 5/receive fdl bit 5 (rfdl5) bit 6/receive fdl bit 6 (rfdl6) bit 7/receive fdl bit 7 (rfdl7). msb of the received fdl code. register name: rfdlm1, rfdlm2 register description: receive fdl match register 1 receive fdl match register 2 register address: c2h, c3h bit # 7 6 5 4 3 2 1 0 name rfdlm7 rfdlm6 rfdlm5 rfdlm4 rfdlm3 rfdlm2 rfdlm1 rfdlm0 default 0 0 0 0 0 0 0 0 bit 0/receive fdl match bit 0 (rfdlm0). lsb of the fdl match code. bit 1/receive fdl match bit 1 (rfdlm1) bit 2/receive fdl match bit 2 (rfdlm2) bit 3/receive fdl match bit 3 (rfdlm3) bit 4/receive fdl match bit 4 (rfdlm4) bit 5/receive fdl match bit 5 (rfdlm5) bit 6/receive fdl match bit 6 (rfdlm6) bit 7/receive fdl match bit 7 (rfdlm7). msb of the fdl match code. downloaded from: http:///
ds2155 142 of 238 23.5.3 transmit section the transmit section shifts out into the t1 data stream either the fdl (in the esf framing mode) or the fs bits (in the d4 framing mode) contained in the transmit fdl regist er (tfdl). when a new value is written to the tfdl, it is multiplexed serially (lsb first) into the prope r position in the outgoing t1 data stream. after the full 8 bits have been shifted out, the framer signals the host microcontroller by setting the sr8.2 bit to a 1 that the buffer is empty and that more data is needed. the int also toggles low if enabled through imr8.2. the user has 2ms to update th e tfdl with a new value. if the tfdl is not updated, the old value in the tfdl is transmitted once again. the framer al so contains a zero stuffer that is controlled through the t1t cr2.5 bit. in both ansi t1.403 a nd tr54016, communications on the fdl follows a subset of an lapd protocol. the lapd prot ocol states that no more than five 1s should be transmitted in a row so that the da ta does not resemble an opening or closing flag (01111110) or an abort signal (11111111). if enabled th rough t1tcr2.5, the framer automatically looks for five 1s in a row. if it finds such a pattern, it automatica lly inserts a 0 after the five 1s. th e t1tcr2.5 bit should always be set to a 1 when the framer is inserting the fdl. register name: tfdl register description: transmit fdl register register address: c1h bit # 7 6 5 4 3 2 1 0 name tfdl7 tfdl6 tfdl5 tfdl4 tfdl3 tfdl2 tfdl1 tfdl0 default 0 0 0 0 0 0 0 0 note: also used to insert fs framing pattern in d4 framing mode. the transmit fdl register (tfdl) contains the fdl information that is to be inserted on a byte basis into the outgoing t1 data stream. the lsb is transmitted first. bit 0/transmit fdl bit 0 (tfdl0). lsb of the transmit fdl code. bit 1/transmit fdl bit 1 (tfdl1) bit 2/transmit fdl bit 2 (tfdl2) bit 3/transmit fdl bit 3 (tfdl3) bit 4/transmit fdl bit 4 (tfdl4) bit 5/transmit fdl bit 5 (tfdl5) bit 6/transmit fdl bit 6 (tfdl6) bit 7/transmit fdl bit 7 (tfdl7). msb of the transmit fdl code. 23.6 d4/slc-96 operation in the d4 framing mode, the framer uses the tfdl regi ster to insert the fs framing pattern. to allow the device to properly insert the fs fram ing pattern, the tfdl register at address c1h must be programmed to 1ch and the following bits must be programmed as shown: t1tcr1.2 = 0 (source fs data from the tfdl register) t1tcr2.6 = 1 (allow the tfdl register to load on multiframe boundaries) since the slc-96 message fields share the fs-bit po sition, the user can access these message fields through the tfdl and rfdl registers. refer to application note 345: ds2141a, ds2151, ds2152 slc- 96 for a detailed description about implementing an slc-96 function. downloaded from: http:///
ds2155 143 of 238 24. line interface unit (liu) the liu contains three sections: the receiver that ha ndles clock and data recovery, the transmitter that waveshapes and drives the t1 line, a nd the jitter attenuator. these three sections are controlled by the line interface control registers (lic1Clic4), which are de scribed in the following sections. the liu has its own t1/e1 mode-select bit and can operate independently of the framer function. the ds2155 can switch between t1 or e1 networks without changing any extern al components on either the transmit or receive side. figure 24-3 shows a network connection usi ng minimal components. in this configuration, the ds2155 can connect to t1, j1, or e1 (75 ? or 120 ? ) without any component change. the receiver can adjust the 120 ? termination to 100 ? or 75 ? . the transmitter can adjust its output impedance to provide high return-loss characteristics for 120 ? , 100 ? , and 75 ? lines. other components can be added to this configura tion to meet safety and networ k protection requirements (section 24.8 ). 24.1 liu operation the analog ami/hdb3 waveform off the e1 line or the ami/b8zs waveform off of the t1 line is transformer-coupled into the rtip and rring pins of the ds2155. the user has the option to use internal termination, software selectable for 75 ? /100 ? /120 ? applications, or external termination. the liu recovers clock and data from the analog signal and passes it through the jitter-attenuation mux outputting the received line clock at rclko and bipolar or nrz da ta at rposo and rnego. the ds2155 contains an active filter that reconstructs th e analog-received signal for the nonlinear losses that occur in transmission. the receive circuitry also is configurable for various monitor applications. the device has a usable receive sensitiv ity of 0db to -43db for e1 and 0db to -36db for t1, which allow the device to operate on 0.6 3mm (22awg) cables up to 2.5km (e1) and 6k feet (t1) in le ngth. data input at tposi and tnegi is sent through th e jitter-attenuation mux to the wave shaping circuitry and line driver. the ds2155 drives the e1 or t1 line from the tti p and tring pins through a coupling transformer. the line driver can handle both cept 30/isdn-pri lin es for e1 and long-haul (csu) or short-haul (dsx-1) lines for t1. 24.2 receiver the ds2155 contains a digi tal clock recovery system. the ds2155 couples to the receive e1 or t1 twisted pair (or coaxial cable in 75 ? e1 applications) through a 1:1 transformer. see table 24-c for transformer details. the ds2155 has the option of using software-selec table termination requiring only a single fixed pair of te rmination resistors. the ds2155s liu is designed to be fully software selectable for e1 and t1, requiring no change to any external resistors for the receive side. the receive side allows the user to configure the ds2155 for 75 ? , 100 ? , or 120 ? receive termination by setti ng the rt1 (lic4.1) and rt0 (l ic4.0) bits. when using the internal termination feature, the resistors labeled r in figure 24-3 should be 60 ? each. if external termination is used, rt1 and rt0 should be set to 0 and the resistors labeled r in figure 24-3 should be 37.5 ? , 50 ? , or 60 ? each, depending on the line impedance. there are two ranges of user-selectable receive sensit ivity for t1 and e1. the egl bit of lic1 (lic1.4) selects the full or limited sensitivity. the resultant e1 or t1 clock derived from mclk is multiplied by 16 through an internal pll and fed to the clock recovery system. the clock recovery system uses the clock from the pll circuit to form a 16-times over-sam pler that is used to r ecover the clock and data. this over-sampling technique offers outstanding perf ormance to meet jitter tolerance specifications shown in figure 24-7 . downloaded from: http:///
ds2155 144 of 238 normally, the clock that is output at the rclk pin is the recovered cl ock from the e1 ami/hdb3 or t1 ami/b8zs waveform presented at th e rtip and rring inputs. if the jit ter attenuator is placed in the receive path (as is the case in most applications ), the jitter attenuator restores the rclk to an approximate 50% duty cycle. if the jitt er attenuator is either placed in the transmit path or is disabled, the rclk output can exhibit slig htly shorter high cycles of the cloc k. this is because of the highly over- sampled digital-clock recovery circuitry. see the receive ac timing characteristics in section 37.3 for more details. when no signal is present at rt ip and rring, a receive car rier loss (rcl) condition occurs and the rclk is derived from the jaclk source. 24.2.1 receive level indicator and threshold interrupt the ds2155 reports the signal stre ngth at rtip and rring in 2.5db increments through rl3Crl0 located in information register 2 (info2). this feature is helpful when trouble-shooting line- performance problems. the ds2155 can initiate an in terrupt whenever the input falls below a certain level through the input-level under-threshold indicat or (sr1.7). using the rlt0Crlt4 bits of the ccr4 register, the user can set a threshold in 2.5db increments. the sr1.7 bit is set whenever the input level at rtip and rring falls below the threshold set by the value in rlt0Crlt4. the level must remain below the programmed threshold for approximately 50m s for this bit to be set. the accuracy of the receive level indication is +/- 1 lsb (2.5db) from 25c to 85c and +/ - 2 lsbs (5db) from C40c to 25c. 24.2.2 receive g.703 synchroni zation signal (e1 mode) the ds2155 is capable of receiving a 2.048mhz squa re-wave synchronization clock as specified in section 13 of itu g.703, october 1998. in order to use the ds2155 in this mode, set the receive synchronization clock enable (lic3.2) = 1. 24.2.3 monitor mode monitor applications in both e1 and t1 require various flat gain settings for the receive-side circuitry. the ds2155 can be programmed to support these appli cations through the monitor mode control bits mm1 and mm0 in the lic3 register ( figure 24-1 ). figure 24-1. typical monitor application primary t1/e1 terminating device monitor port jack t1/e1 line xf m r ds2156 rt rm rm secondary t1/e1 terminating device downloaded from: http:///
ds2155 145 of 238 24.3 transmitter the ds2155 uses a phase-lock loop along with a precis ion digital-to-analog conv erter (dac) to create the waveforms that are transmitted onto the e1 or t1 line. the waveforms created by the ds2155 meet the latest etsi, itu, ansi, and at&t specifications . the user selects which waveform is generated by setting the ets bit (lic2.7) for e1 or t1 operation, then programming the l2/l1/l0 bits in register lic1 for the appropriate application. a 2.048mhz or 1.544mhz clock is required at tclk i for transmitting data presented at tposi and tnegi. normally these pins are connected to tc lko, tposo, and tnego. however, the liu can operate in an independent fashion. itu specificati on g.703 requires an accuracy of 50ppm for both t1 and e1. tr62411 and ansi specifications require an accu racy of 32ppm for t1 interfaces. the clock can be sourced internally from rclk or jaclk. see lic2.3, lic4.4, and lic4.5 for details. because of the nature of the transmitters design, very little jitter (less than 0.005ui p-p broadband from 10hz to 100khz) is added to the jitter pres ent on tclk. also, the waveforms cr eated are independent of the duty cycle of tclk. the transmitter in the ds2155 couples to the e1 or t1 transmit twisted pair (or coaxial cable in some e1 applications) th rough a 1:2 step-up transformer. for the device to create the proper waveforms, the transformer used must meet the specifications listed in table 24-c . the ds2155 has the option of using software-selectable transmit termination. the transmit line drive has two modes of operation: fixe d gain or automatic gain. in the fixed gain mode, the transmitter outputs a fixed current into the networ k load to achieve a nominal pulse amplitude. in the automatic gain mode, the transmitter adjusts its output level to compensate for slight variances in the network load. see the transmit line build-out control (tlbc) register for details. 24.3.1 transmit short-circuit detector/limiter the ds2155 has an automatic short-circuit limiter that limits the source current to 50ma (rms) into a 1 ? load. this feature can be disabled by setting th e scld bit (lic2.1) = 1. tcle (info2.5) provides a real-time indication of when the cu rrent limiter is activated. if the current limiter is disabled, tcle indicates that a short-circuit cond ition exists. status register sr1.2 provides a latched version of the information, which can be used to activate an interrupt when enabled by the imr1 register. the tpd bit (lic1.0) powers down the transmit line driver and tri-states the ttip and tring pins. 24.3.2 transmit open-circuit detector the ds2155 can also detect when the ttip or tr ing outputs are open ci rcuited. tocd (info2.4) provides a real-time indication of when an open circuit is detected. sr 1 provides a latched version of the information (sr1.1), which can be used to activate an interrupt when enabled by the imr1 register. 24.3.3 transmit bpv error insertion when ibpv (lic2.5) is transitioned from a 0 to a 1, the device waits for the next occurrence of three consecutive 1s to insert a bpv. ibpv must be cleared and set agai n for another bpv error insertion. 24.3.4 transmit g.703 synchr onization signal (e1 mode) the ds2155 can transmit the 2.048mhz square-wave sync hronization clock as specified in section 13 of itu g.703, october 1998. in order to transmit the 2.048m hz clock, when in e1 mode, set the transmit synchronization clock enable (lic3.1) = 1. downloaded from: http:///
ds2155 146 of 238 24.4 mclk prescaler a 16.384mhz, 8.192mhz, 4.096mhz, 2.048mhz, or 1.544mhz clock must be applied at mclk. itu specification g.703 requires an accuracy of 50ppm for both t1 and e1. tr62411 and ansi specifications require an accuracy of 32ppm for t1 interfaces. a pr escaler divides the 16mhz, 8mhz, or 4mhz clock down to 2.048mhz. ther e is an on-board pll for the jitte r attenuator, which converts the 2.048mhz clock to a 1.544mhz rate for t1 applicati ons. setting jamux (lic2.3) to a logic 0 bypasses this pll. 24.5 jitter attenuator the ds2155 contains an on-board jitte r attenuator that can be set to a depth of either 32 or 128 bits through the jabds bit (lic1.2). the 128-bit mode is us ed in applications where large excursions of wander are expected. the 32-bit mode is used in dela y-sensitive applications. the characteristics of the attenuation are shown in figure 24-9 . the jitter attenuator can be placed in either the receive path or the transmit path by appropriately setting or cleari ng the jas bit (lic1.3). setting the dja bit (lic1.1) disables (in effect, removes) the ji tter attenuator. on-board circuitry adjusts either the recovered clock from the clock/data recovery bloc k or the clock applied at the tclk pin to cr eate a smooth jitter-free clock that is used to clock data out of the jitter attenuator fifo . it is acceptable to provide a gapped/bursty clock at the tclk pin if the jitter attenuator is placed on the transmit si de. if the incoming jitter exceeds either 120ui p-p (buffer depth is 128 bits) or 28ui p-p (buffer depth is 32 bits), then the ds2155 divides the internal nominal 32.768mhz (e1) or 24.704mhz (t1) clock by either 15 or 17 instead of the normal 16 to keep th e buffer from overflowing. when the de vice divides by ei ther 15 or 17, it also sets the jitter attenua tor limit trip (jalt) bit in status register 1 (sr1.4). 24.6 cmi (code mark inversion) option the ds2155 provides a cmi interface for connection to optical transports. this interface is a unipolar 1t2b signal type. ones are encoded as either a logical 1 or 0 level for the full duration of the clock period. zeros are encoded as a 0-to-1 transition at the middle of the clock period. figure 24-2. cmi coding transmit and receive cmi are enabled through lic4.7. when this register bit is set, the ttip pin outputs cmi-coded data at normal levels. this signal can be used to directly drive an opt ical interface. when cmi is enabled, the user can also use hdb3/b8zs codi ng. when this register bit is set, the rtip pin becomes a unipolar cmi input. the cmi signal is processed to extract an d align the clock with data. 0 1 11 001 clock data cmi downloaded from: http:///
ds2155 147 of 238 24.7 liu control registers register name: lic1 register description: line interface control 1 register address: 78h bit # 7 6 5 4 3 2 1 0 name l2 l1 l0 egl jas jabds dja tpd default 0 0 0 0 0 0 0 0 bit 0/transmit power-down (tpd) 0 = powers down the transmitter and tri-states the ttip and tring pins 1 = normal transmitter operation bit 1/disable jitter attenuator (dja) 0 = jitter attenuator enabled 1 = jitter attenuator disabled bit 2/jitter attenuator buffer depth select (jabds) 0 = 128 bits 1 = 32 bits (use for delay-sensitive applications) bit 3/jitter attenuator select (jas) 0 = place the jitter attenuator on the receive side 1 = place the jitter attenuator on the transmit side bit 4/receive equalizer gain limit (egl). this bit controls the sensitivity of the receive equalizer. t1 mode 0 = -36db (long haul) 1 = -15db (limited long haul) e1 mode 0 = -12db (short haul) 1 = -43db (long haul) bits 5 to 7/line buildout select (l0 to l2). when using the internal terminati on, the user needs only to select 000 for 75 ? operation or 001 for 120 ? operation below. this selects the proper voltage levels for 75 ? or 120 ? operation. using tt0 and tt1 of the licr4 register, th e user can then select the proper internal source termination. line buildouts 100 and 101 are for b ackwards compatibility with older products only. e1 mode l2 l1 l0 application n (1) return loss rt (1) ( ? ) 0 0 0 75 ? normal 1:2 nm 0 0 0 1 120 ? normal 1:2 nm 0 1 0 0 75 ? with high return loss * 1:2 21db 6.2 1 0 1 120 ? with high return loss * 1:2 21db 11.6 *tt0 and tt1 of lic4 register must be set to 0 in this configuration. downloaded from: http:///
ds2155 148 of 238 t1 mode l2 l1 l0 application n (1) return loss rt (1) ( ? ) 0 0 0 dsx-1 (0ft to 133ft) / 0db csu 1:2 nm 0 0 0 1 dsx-1 (133ft to 266ft) 1:2 nm 0 0 1 0 dsx-1 (266ft to 399ft) 1:2 nm 0 0 1 1 dsx-1 (399ft to 533ft) 1:2 nm 0 1 0 0 dsx-1 (533ft to 655ft) 1:2 nm 0 1 0 1 -7.5db csu 1:2 nm 0 1 1 0 -15db csu 1:2 nm 0 1 1 1 -22.5db csu 1:2 nm 0 downloaded from: http:///
ds2155 149 of 238 register name: tlbc register description: transmit line build-out control register address: 7dh bit # 7 6 5 4 3 2 1 0 name - agce gc5 gc4 gc3 gc2 gc1 gc0 default 0 0 0 0 0 0 0 0 bit 0C5 gain control bits 0C5 (gc0Cgc5 ). the gc0 through gc5 bits control the gain setting for the nonautomatic gain mode. use the tables below for se tting the recommended values. the lb (line build-out) column refers to the value in the l0Cl2 bits in lic1 (line interface control 1) register. network mode lb gc5 gc4 gc3 gc2 gc1 gc0 0 1 0 0 1 1 0 1 0 1 1 0 1 1 2 0 1 1 0 1 0 3 1 0 0 0 0 0 4 1 0 0 1 1 1 5 1 0 0 1 1 1 6 0 1 0 0 1 1 t1, impedance match off 7 1 1 1 1 1 1 0 0 1 1 1 1 0 1 0 1 0 1 0 1 2 0 1 0 1 0 1 3 0 1 1 0 1 0 4 1 0 0 0 1 0 5 1 0 0 0 0 0 6 0 0 1 1 0 0 t1, impedance match on 7 1 1 1 1 1 1 0 1 0 0 0 0 1 1 1 0 0 0 0 1 4 1 0 1 0 1 0 e1, impedance match off 5 1 0 1 0 0 0 0 0 1 1 0 1 0 e1, impedance match on 1 0 1 1 0 1 0 bit 6/automatic gain control enable (agce). 0 = use transmit agc, tlbc bits 0C5 are dont care 1 = do not use transmit agc, tlbc bits 0C5 set nominal level bit 7/unused, must be set to zero for proper operation. downloaded from: http:///
ds2155 150 of 238 register name: lic2 register description: line interface control 2 register address: 79h bit # 7 6 5 4 3 2 1 0 name ets lirst ibpv tua1 jamux scld clds default 0 0 0 0 0 0 0 0 bit 0/custom line driver select (clds). setting this bit to a 1 redefines the operation of the transmit line driver. when this bit is set to a 1 and lic1.5 = lic1.6 = lic1.7 = 0, the device generates a square wave at the ttip and tring outputs instead of a normal waveform. when th is bit is set to a 1 and lic1.5 = lic1.6 = lic1.7 0, the device forces ttip and tring outputs to beco me open-drain drivers instead of their normal push-pull operation. this bit should be set to 0 for normal operation of the device. bit 1/short-circuit limit disable (ets = 1) (scld). controls the 50ma (rms) current limiter. 0 = enable 50ma current limiter 1 = disable 50ma current limiter bit 2/unused, must be set to 0 for proper operation bit 3/jitter attenuator mux (jamux). controls the source for jaclk. 0 = jaclk sourced from mclk (2.048mhz or 1.544mhz at mclk) 1 = jaclk sourced from internal pll (2.048mhz at mclk) bit 4/transmit unframed all ones (tua1). the polarity of this bit is set such that the device transmits an all- ones pattern on power-up or device reset. this bit must be set to a 1 to allow the device to transmit data. the transmission of this data pattern is always timed off of the jaclk. 0 = transmit all ones at ttip and tring 1 = transmit data normally bit 5/insert bpv (ibpv). a 0-to-1 transition on this bit causes a single bpv to be inserted into the transmit data stream. once this bit has been toggled from a 0 to a 1, the device waits for the next occurrence of three consecutive 1s to insert the bpv. this bit must be cleared a nd set again for a subsequent error to be inserted. bit 6/line interface reset (lirst). setting this bit from a 0 to a 1 initiates an internal reset that resets the clock recovery state machine and recenters the jitter attenuator. norm ally this bit is only toggled on power-up. must be cleared and set again for a subsequent reset. bit 7/e1/t1 select (ets) 0 = t1 mode selected 1 = e1 mode selected downloaded from: http:///
ds2155 151 of 238 register name: lic3 register description: line interface control 3 register address: 7ah bit # 7 6 5 4 3 2 1 0 name tces rces mm1 mm0 rsclke tsclke taoz default 0 0 0 0 0 0 0 0 bit 0/transmit alternate ones and zeros (taoz). transmit a 101010 pattern (customer disconnect indication signal) at ttip and tring. the transmission of this data pattern is always timed off of tclk. 0 = disabled 1 = enabled bit 1/transmit synchronization g.703 clock enable (tsclke) 0 = disable 1.544mhz (t1)/2.048mhz (e1) transmit synchronization clock 1 = enable 1.544mhz (t1)/2.048mhz (e1) transmit synchronization clock bit 2/receive synchronization g.703 clock enable (rsclke) 0 = disable 1.544mhz (t1)/2.048mhz (e1) synchronization receive mode 1 = enable 1.544mhz (t1)/2.048mhz (e1) synchronization receive mode bits 3 to 4/monitor mode (mm0 to mm1) mm1 mm0 internal linear gain boost (db) 0 0 normal operation (no boost) 0 1 20 1 0 26 1 1 32 bit 5/receive-clock edge select (rces). selects which rclko edge to update rposo and rnego. 0 = update rposo and rnego on rising edge of rclko 1 = update rposo and rnego on falling edge of rclko bit 6/transmit-clock edge select (tces). selects which tclki edge to sample tposi and tnegi. 0 = sample tposi and tneg i on falling edge of tclki 1 = sample tposi and tnegi on rising edge of tclki bit 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 152 of 238 register name: lic4 register description: line interface control 4 register address: 7bh bit # 7 6 5 4 3 2 1 0 name cmie cmii mps1 mps0 tt1 tt0 rt1 rt0 default 0 0 0 0 0 0 0 0 bits 0, 1/receive termination select (rt0, rt1) rt1 rt0 internal receive-termination configuration 0 0 internal receive-side termination disabled 0 1 internal receive-side 75 ? enabled 1 0 internal receive-side 100 ? enabled 1 1 internal receive-side 120 ? enabled bits 2, 3/transmit termination select (tt0, tt1) tt1 tt0 internal transmit-termination configuration 0 0 internal transmit-side termination disabled 0 1 internal transmit -side 75 ? enabled 1 0 internal transmit -side 100 ? enabled 1 1 internal transmit -side 120 ? enabled bits 4, 5/mclk prescaler for t1 mode mclk (mhz) mps1 mps0 jamux (lic2.3) 1.544 0 0 0 3.088 0 1 0 6.176 1 0 0 12.352 1 1 0 2.048 0 0 1 4.096 0 1 1 8.192 1 0 1 16.384 1 1 1 bits 4, 5/mclk prescaler for e1 mode mclk (mhz) mps1 mps0 jamux (lic2.3) 2.048 0 0 0 4.096 0 1 0 8.192 1 0 0 16.384 1 1 0 bit 6/cmi invert (cmii) 0 = cmi normal at ttip and rtip 1 = invert cmi signal at ttip and rtip bit 7/cmi enable (cmie) 0 = disable cmi mode 1 = enable cmi mode downloaded from: http:///
ds2155 153 of 238 register name: info2 register description: information register 2 register address: 11h bit # 7 6 5 4 3 2 1 0 name bsync bd tcle tocd rl3 rl2 rl1 rl0 default 0 0 0 0 0 0 0 0 bits 0 to 3/receive level bits (rl0 to rl3). real-time bits rl3 rl2 rl1 rl0 receive level (db) 0 0 0 0 greater than -2.5 0 0 0 1 -2.5 to -5.0 0 0 1 0 -5.0 to -7.5 0 0 1 1 -7.5 to -10.0 0 1 0 0 -10.0 to -12.5 0 1 0 1 -12.5 to -15.0 0 1 1 0 -15.0 to -17.5 0 1 1 1 -17.5 to -20.0 1 0 0 0 -20.0 to -22.5 1 0 0 1 -22.5 to -25.0 1 0 1 0 -25.0 to -27.5 1 0 1 1 -27.5 to -30.0 1 1 0 0 -30.0 to -32.5 1 1 0 1 -32.5 to -35.0 1 1 1 0 -35.0 to -37.5 1 1 1 1 less than -37.5 note: rl0 through rl3 only indicate the signal range as sp ecified by the egl bit in lic1. example; if egl = 1 and in t1 mode, rl0 through rl3 will only indi cate a signal range of >-2.5db to C15db even if the signal is < -15db. bit 4/transmit open-circuit detect (tocd). a real-time bit that is set when the device detects that the ttip and tring outputs are open-circuited. bit 5/transmit current-limit exceeded (tcle). a real-time bit that is set when the 50ma (rms) current limiter is activated, whether the current limiter is enabled or not. bit 6/boc detected (bd). a real-time bit that is set high when the boc detector is presently seeing a valid sequence and set low when no boc is currently being detected. bit 7/bert real-time synchronization status (bsync). real-time status of the synchronizer (this bit is not latched). this bit is set when the incoming pattern matc hes for 32 consecutive bit positions . it is cleared when six or more bits out of 64 are received in error. refer to bsync in the bert status register, sr9, for an interrupt- generating version of this signal. downloaded from: http:///
ds2155 154 of 238 register name: sr1 register description: status register 1 register address: 16h bit # 7 6 5 4 3 2 1 0 name ilut timer rscos jalt lrcl tcle tocd lolitc default 0 0 0 0 0 0 0 0 bit 0/loss of line-interface transmit-clock condition (lolitc) . set when tclki has not transitioned for one channel time. this is a double interrupt bit (section 6.2 ). bit 1/transmit open-circuit detect condition (tocd). set when the device detects that the ttip and tring outputs are open-circuited. this is a double interrupt bit (section 6.2 ). bit 2/transmit current-limit exceeded condition (tcle). set when the 50ma (rms) current limiter is activated, whether the current limiter is enabled or not. this is a double interrupt bit (section 6.2 ). bit 3/line interface receive carrier-loss condition (lrcl). set when the carrier signal is lost. this is a double interrupt bit (section 6.2 ). bit 4/jitter attenuator limit trip event (jalt). set when the jitter attenuator fifo reaches to within 4 bits of its useful limit. this bit is cleared when read. useful for debugging jitter attenuation operation. bit 5/receive signaling change-of-state event (rscos). set when any channel selected by the receive signaling change-of-state interrupt-enable register s (rscse1 through rscse4) changes signaling state. bit 6/timer event (timer). follows the error-counter update interval as determined by the ecus bit in the error-counter configuration register (ercnt). t1: set on increments of 1 second or 42ms based on rclk e1: set on increments of 1 second or 62.5ms based on rclk bit 7/input level under threshold (ilut). this bit is set whenever the input level at rtip and rring falls below the threshold set by the valu e in ccr4.4 through ccr4.7. the level must remain below the programmed threshold for approximately 50ms for this bit to be set. this is a double interrupt bit (section 6.2 ). downloaded from: http:///
ds2155 155 of 238 register name: imr1 register description: interrupt mask register 1 register address: 17h bit # 7 6 5 4 3 2 1 0 name ilut timer rscos jalt lrcl tcle tocd lolitc default 0 0 0 0 0 0 0 0 bit 0/loss-of-transmit clock condition (lolitc) 0 = interrupt masked 1 = interrupt enabledgenerates interrupts on rising and falling edges bit 1/transmit open-circuit detect condition (tocd) 0 = interrupt masked 1 = interrupt enabledgenerates interrupts on rising and falling edges bit 2/transmit current-limit exceeded condition (tcle) 0 = interrupt masked 1 = interrupt enabledgenerates interrupts on rising and falling edges bit 3/line interface receive carrier-loss condition (lrcl) 0 = interrupt masked 1 = interrupt enabledgenerates interrupts on rising and falling edges bit 4/jitter attenuator limit trip event (jalt) 0 = interrupt masked 1 = interrupt enabled bit 5/receive signaling change-of-state event (rscos) 0 = interrupt masked 1 = interrupt enabled bit 6/timer event (timer) 0 = interrupt masked 1 = interrupt enabled bit 7/input level under threshold (ilut) 0 = interrupt masked 1 = interrupt enabled downloaded from: http:///
ds2155 156 of 238 24.8 recommended circuits figure 24-3. software-selected te rmination, metallic protection t2 2:1 75/100/110/120 ? s2 f1 60 ? 60 ? 1:1 s1 0.1 f s3 t1 1.0 f f2 s4 t3 1 t4 1 ttip dv ss dallas semiconductor t1/e1/j1 sct or liu tring dv dd tv ss tv dd rv ss rv dd 0.01 f 2 0.1 f 2 0.1 f 2 0.1 f 2 vcc 68 f 2 vcc rtip rring vcc 1 choke is optional but should be included when necessary f or common mode noise r eduction. 2 decoupling capacitors need to be placed near dev ice power pins design notes: tw isted pair/coax 75/100/110/120 ? tw isted pair/coax table 24-a. component list (softw are-selected termination, metallic protection) name description f1 and f2 1.25a slow blow fuse s1 and s2 25v (max) transient suppressor s3 ands4 77v (max) transient suppressor t1 and t2 transformer 1:1ct and 1:2ct (3.3v, smt) t3 and t4 dual common-mode choke (smt) note 1: t3 and t4 are optional. for more inform ation, contact the te lecom support group at telecom.support@dalsemi.com . note 2: the layout from the transformers to the network in terface is critic al. traces should be at least 25 mils wide and separated from other circuit lines by at least 150 mils. the area under this portion of the circuit should not contain power planes. note 3: some t1 (never in e1) applications source or si nk power from the network-side center taps of the rx/tx transformers. note 4: a list of transformer part numbers and ma nufacturers is avai lable by contacting telecom.support@dalsemi.com . downloaded from: http:///
ds2155 157 of 238 figure 24-4. software-selected te rmination, longitudinal protection t2 2:1 ttip dv ss dallas semiconductor t1/e1/j1 sct or liu s2 f1f2 tring dv dd tv ss tv dd rv ss rv dd 0.01 f 2 0.1 f 2 0.1 f 2 0.1 f 2 vcc 68 f 2 vcc rtip rring vcc 60 ? 60 ? 1:1 s1 0.1 f s3s4 s7 t1 1.0 f f3f4 s5s6 s8 t3 1 t4 1 1 choke is optional but should be included when necessary f or common mode noise reduction. 2 decoupling capacitors need to be placed near dev ice power pins des ign notes : 100/110/120 ? tw isted pair 100/110/120 ? tw isted pair table 24-b. component list (softwar e-selected termination, longitudinal protection) name description f1 to f4 1.25a slow blow fuse s1 and s2 25v (max) transient suppressor s3, s4, s5, s6 180v (max) transient suppressor s7 and s8 40v (max) transient suppressor t1 and t2 transformer 1:1ct and 1:2ct (3.3v, smt) t3 and t4 dual common-mode choke (smt) note 1: t3 and t4 are optional. for more inform ation, contact the te lecom support group at telecom.support@dalsemi.com . note 2: a list of alternate transformer part num bers and manufacturers is available at telecom.support@dalsemi.com . note 3: the layout from the transformers to the network in terface is critic al. traces should be at least 25 mils wide and separated from other circuit lines by at least 150 mils. the area under this portion of the circuit should not contain power planes. note 4: some t1 (never in e1) applications source or si nk power from the network-side center taps of the rx/tx transformers. note 5: the ground trace connected to the s2/s3 pair and the s4/s5 pair s hould be at least 50 mils wide to conduct the extra current from a longitudinal power-cross event. downloaded from: http:///
ds2155 158 of 238 24.9 component specifications table 24-c. transformer specifications specification recommended value turns ratio 3.3v applications 1:1 (receive) and 1:2 (transmit) 2% primary inductance 600 h (min) leakage inductance 1.0 h (max) intertwining capacitance 40pf (max) transmit transformer dc resistance primary (device side) secondary 1.0 ? (max) 2.0 ? (max) receive transformer dc resistance primary (device side) secondary 1.2 ? (max) 1.2 ? (max) downloaded from: http:///
ds2155 159 of 238 figure 24-5. e1 transmit pulse template figure 24-6. t1 transmit pulse template 0 -0.1 -0.2 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 0 time (ns) scaled amplitude 50 100 150 200 250 -50 -100 -150 -200 -250 269ns 194ns 219ns (in 75 ? systems, 1.0 on the scale = 2.37vpeak in 120 ? systems, 1.0 on the scale = 3.00vpeak) g.703 template 0 -0.1 -0.2 -0.3 -0.4 -0.5 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 -500 -300 -100 0 300 500 700 -400 -200 200 400 600 100 time (ns) normalized amplitude t1.102/87, t1.403, cb 119 ( oct. 79 ) , and i.431 template -0.77 -0.39 -0.27 -0.27 -0.12 0.00 0.27 0.35 0.93 1.16 -500 -255 -175 -175 -75 0 175 225 600 750 0.050.05 0.80 1.15 1.15 1.05 1.05 -0.07 0.05 0.05 -0.77 -0.23 -0.23 -0.15 0.00 0.15 0.23 0.23 0.46 0.66 0.93 1.16 -500 -150 -150 -100 0 100 150 150 300 430 600 750 -0.05 -0.05 0.50 0.95 0.95 0.90 0.50 -0.45 -0.45 -0.20 -0.05 -0.05 ui time amp. maximum curve ui time amp. minimum curve downloaded from: http:///
ds2155 160 of 238 figure 24-7. jitter tolerance figure 24-8. jitter tolerance (e1 mode) frequency (hz) unit intervals (ui p-p ) 1k 100 10 1 0.1 10 100 1k 10k 100k ds2155 tolerance 1 minimum tolerance level as per itu g.823 40 1.5 0.2 20 2.4k 18k frequency (hz) unit intervals (ui p-p ) 1k 100 10 1 0.1 10 100 1k 10k 100k ds2155 tolerance 1 tr 62411 (dec. 90) itu-t g.823 downloaded from: http:///
ds2155 161 of 238 figure 24-9. jitter attenuation (t1 mode) figure 24-10. jitter attenuation (e1 mode) frequency (hz) 0 -20-40 -60 1 10 100 1k 10k jitter attenuation (db) 100k itu g.7xx prohibited area tbr12 prohibited a rea ds2155 e1 mode frequency (hz) 0db -20db-40db -60db 1 10 100 1k 10k jitter attenuation (db) 100k tr 62411 (dec. 90) prohibited area c u r v e b curve a ds2155 t1 mode downloaded from: http:///
ds2155 162 of 238 figure 24-11. optional crystal connections note 1: c1 and c2 should be 5pf lower than two time s the nominal loading capacitance of the crystal to adjust for the input capacitance of the ds2155. xtald ds2155 c1 c2 1.544mhz/2.048mhz mclk downloaded from: http:///
ds2155 163 of 238 25. programmable in-band lo op code generation and detection the ds2155 has the ability to generate and detect a repe ating bit pattern from one to eight bits or 16 bits in length. this function is available only in t1 mode. to transmit a pattern, the user loads the pattern into the transmit code-definition registers (tcd1 and tcd2) and selects the proper length of the pattern by setting the tc0 and tc1 bits in the in-band code control (ibcc) regi ster. when generating a 1-, 2-, 4-, 8-, or 16-bit pattern, both transmit code-definition registers must be filled with the proper code. generation of a 3-, 5-, 6-, and 7-bit pattern only requi res tcd1 to be filled. once this is accomplished, the pattern is transm itted as long as the tloop c ontrol bit (t1ccr1.0) is enab led. normally (unless the transmit formatter is programmed to not insert the f-bit position) the framer overwrites the repeating pattern once every 193 bits to send the f-bit position. for example, to transmit the standard loop-up code for csus, which is a repeating pattern of ...10000100001... , set tcd1 = 80h, ibcc = 0, and t1ccr1.0 = 1. the framer has three programmable pa ttern detectors. typically two of the detectors are used for loop- up and loop-down code detectio n. the user programs the codes to be detected in the receive up-code definition (rupcd1 and rupcd2) registers and the receive down-code definition (rdncd1 and rdncd2) registers, and the length of each pattern is selected through the ibcc register. there is a third detector (spare) that is defined and controlled through the rscd1/rscd2 and rscc registers. when detecting a 16-bit pattern, both rece ive code-definition regi sters are used together to form a 16-bit register. for 8-bit patterns, both rece ive code-definition registers are filled with the same value. detection of a 1-, 2-, 3-, 4-, 5-, 6-, and 7-b it pattern only requires the first rece ive code-definition register to be filled. the framer detects repeating pattern codes in both framed and unframed circumstances with bit error rates as high as 10e-2. the det ectors are capable of handling both f-bit inserted a nd f-bit overwrite patterns. writing the least significant byte of the recei ve code-definition register resets the integration period for that detector. the code detector has a nominal integration period of 36ms. hence, after about 36ms of receiving a valid code, the proper status bit (lup at sr3.5, ldn at sr3.6, and lspare at sr3.7) is set to a 1. normally codes are sent for a period of five seconds. it is recommended that the software poll the framer every 50ms to 1000ms until five seconds has elapsed to ensure the code is continuously present. downloaded from: http:///
ds2155 164 of 238 register name: ibcc register description: in-band code control register register address: b6h bit # 7 6 5 4 3 2 1 0 name tc1 tc0 rup2 rup1 rup0 rdn2 rdn1 rdn0 default 0 0 0 0 0 0 0 0 bits 0 to 2/receive down-code length definition bits (rdn0 to rdn2) rdn2 rdn1 rdn0 length selected (bits) 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 8/16 bits 3 to 5/receive up-code length definition bits (rup0 to rup2) rup2 rup1 rup0 length selected (bits) 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 8/16 bits 6, 7/transmit code length definition bits (tc0 to tc1) tc1 tc0 length selected (bits) 0 0 5 0 1 6/3 1 0 7 1 1 16/8/4/2/1 downloaded from: http:///
ds2155 165 of 238 register name: tcd1 register description: transmit code-definition register 1 register address: b7h bit # 7 6 5 4 3 2 1 0 name c7 c6 c5 c4 c3 c2 c1 c0 default 0 0 0 0 0 0 0 0 bit 0/transmit code-definition bit 0 (c0). a dont care if a 5-, 6-, or 7-bit length is selected. bit 1/transmit code-definition bit 1 (c1). a dont care if a 5-bit or 6-bit length is selected. bit 2/transmit code-definition bit 2 (c2). a dont care if a 5-bit length is selected. bits 3C6/transmit code-definition bits 3C6 (c3Cc6) bit 7/transmit code-definition bit 7 (c7). first bit of the repeating pattern. register name: tcd2 register description: transmit code definition register 2 register address: b8h bit # 7 6 5 4 3 2 1 0 name c7 c6 c5 c4 c3 c2 c1 c0 default 0 0 0 0 0 0 0 0 least significant byte of 16 bit codes. bits 0C7/transmit code-definition bits 0C7 (c0Cc7). a dont care if a 5-, 6-, or 7-bit length is selected. downloaded from: http:///
ds2155 166 of 238 register name: rupcd1 register description: receive up-code definition register 1 register address: b9h bit # 7 6 5 4 3 2 1 0 name c7 c6 c5 c4 c3 c2 c1 c0 default 0 0 0 0 0 0 0 0 note: writing this register resets the detectors integration period. bit 0/receive up-code definition bits 0 (c0). a dont care if a 1-bit to 7-bit length is selected. bit 1/receive up-code definition bit 1 (c1). a dont care if a 1-bit to 6-bit length is selected. bit 2/receive up-code definition bit 2 (c2). a dont care if a 1-bit to 5-bit length is selected. bit 3/receive up-code definition bit 3 (c3). a dont care if a 1-bit to 4-bit length is selected. bit 4/receive up-code definition bit 4 (c4). a dont care if a 1-bit to 3-bit length is selected. bit 5/receive up-code definition bit 5 (c5). a dont care if a 1-bit or 2-bit length is selected. bit 6/receive up-code definition bit 6 (c6). a dont care if a 1-bit length is selected. bit 7/receive up-code definition bit 7 (c7). first bit of the repeating pattern. register name: rupcd2 register description: receive up-code definition register 2 register address: bah bit # 7 6 5 4 3 2 1 0 name c7 c6 c5 c4 c3 c2 c1 c0 default 0 0 0 0 0 0 0 0 bits 0C7/receive up-code definition bits 0C7 (c0Cc7). a dont care if a 1-bit to 7-bit length is selected. downloaded from: http:///
ds2155 167 of 238 register name: rdncd1 register description: receive down-code definition register 1 register address: bbh bit # 7 6 5 4 3 2 1 0 name c7 c6 c5 c4 c3 c2 c1 c0 default 0 0 0 0 0 0 0 0 note: writing this register resets the detectors integration period. bit 0/receive down-code definition bit 0 (c0). a dont care if a 1-bit to 7-bit length is selected. bit 1/receive down-code definition bit 1 (c1). a dont care if a 1-bit to 6-bit length is selected. bit 2/receive down-code definition bit 2 (c2). a dont care if a 1-bit to 5-bit length is selected. bit 3/receive down-code definition bit 3 (c3). a dont care if a 1-bit to 4-bit length is selected. bit 4/receive down-code definition bit 4 (c4). a dont care if a 1-bit to 3-bit length is selected. bit 5/receive down-code definition bit 5 (c5). a dont care if a 1-bit or 2-bit length is selected. bit 6/receive down-code definition bit 6 (c6). a dont care if a 1-bit length is selected. bit 7/receive down-code definition bit 7 (c7). first bit of the repeating pattern. register name: rdncd2 register description: receive down-code definition register 2 register address: bch bit # 7 6 5 4 3 2 1 0 name c7 c6 c5 c4 c3 c2 c1 c0 default 0 0 0 0 0 0 0 0 bits 0C7/receive down-code definition bits 0C7 (c0Cc7). a dont care if a 1-bit to 7-bit length is selected. downloaded from: http:///
ds2155 168 of 238 register name: rscc register description: in-band receive spare control register register address: bdh bit # 7 6 5 4 3 2 1 0 name rsc2 rsc1 rsc0 default 0 0 0 0 0 0 0 0 bits 0 to 2/receive spare code length definition bits (rsc0 to rsc2) rsc2 rsc1 rsc0 length selected (bits) 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 8/16 bits 3 to 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 169 of 238 register name: rscd1 register description: receive spare-code definition register 1 register address: beh bit # 7 6 5 4 3 2 1 0 name c7 c6 c5 c4 c3 c2 c1 c0 default 0 0 0 0 0 0 0 0 note: writing this register resets the detectors integration period. bit 0/receive spare-code definition bit 0 (c0). a dont care if a 1-bit to 7-bit length is selected. bit 1/receive spare-code definition bit 1 (c1). a dont care if a 1-bit to 6-bit length is selected. bit 2/receive spare-code definition bit 2 (c2). a dont care if a 1-bit to 5-bit length is selected. bit 3/receive spare-code definition bit 3 (c3). a dont care if a 1-bit to 4-bit length is selected. bit 4/receive spare-code definition bit 4 (c4). a dont care if a 1-bit to 3-bit length is selected. bit 5/receive spare-code definition bit 5 (c5). a dont care if a 1-bit or 2-bit length is selected. bit 6/receive spare-code definition bit 6 (c6). a dont care if a 1-bit length is selected. bit 7/receive spare-code definition bit 7 (c7). first bit of the repeating pattern. register name: rscd2 register description: receive spare code definition register 2 register address: bfh bit # 7 6 5 4 3 2 1 0 name c7 c6 c5 c4 c3 c2 c1 c0 default 0 0 0 0 0 0 0 0 bits 0C7/receive spare-code definition bits 0C7 (c0Cc7). a dont care if a 1-bit to 7-bit length is selected. downloaded from: http:///
ds2155 170 of 238 26. bert function the bert block can generate and detect pseudorandom an d repeating bit patterns. it is used to test and stress data communication links, an d it is capable of generating and detecting the following patterns: the pseudorandom patterns 2e7, 2e11, 2e15, and qrss a repetitive pattern from 1 to 32 bits in length alternating (16-bit) words that flip every 1 to 256 words daly pattern the bert receiver has a 32-bit bit counter and a 24-b it error counter. the bert receiver reports three events: a change in receive synchronizer status, a bit error being detected, and if either the bit counter or the error counter overflows. each of these events can be masked w ithin the bert function through the bert control register 1 (bc1). if the software dete cts that the bert has reported an event, then the software must read the bert information register (bir) to determine which event(s) has occurred. to activate the bert block, the hos t must configure the bert mux through the bic register. 26.1 status sr9 contains the status informati on on the bert function. the host can be alerted through this register when there is a bert change-of-state. a major cha nge-of-state is defined as either a change in the receive synchronization (i.e., the bert has gone into or out of receive synchronization), a bit error has been detected, or an overflow has occurred in either the bit counter or the erro r counter. the host must read status register 9 (sr9) to determine the change-of-state. 26.2 mapping the bert function can be assigned to the network direction or backpl ane direction through the direction control bit in the bic register (bic.1). see figure 26-1 and figure 26-2 . the bert also can be assigned on a per-channel basis. the bert transmit control se lector (btcs) and bert receive control selector (brcs) bits of the per-channel pointer register (pcpr) are used to map the bert function into time slots of the transmit and receive data stre ams. in t1 mode, the user can enable mapping into the f-bit position for the transmit and receive directions through the rfus and tfus bits in th e bert interface control (bic) register. downloaded from: http:///
ds2155 171 of 238 figure 26-1. simplified diagram of bert in network direction figure 26-2. simplified diagram of bert in backplane direction bert transmitter bert receiver per-channel and f-bit (t1 mode) mapping 1 0 from receive framer to receive system backplane interface from transmit system backplane interface to transmit framer per-channel and f-bit (t1 mode) mapping bert transmitter bert receiver 1 0 from receive framer to receive system backplane interface from transmit system backplane interface to transmit framer downloaded from: http:///
ds2155 172 of 238 26.3 bert register descriptions register name: bc1 register description: bert control register 1 register address: e0h bit # 7 6 5 4 3 2 1 0 name tc tinv rinv ps2 ps1 ps0 lc resync default 0 0 0 0 0 0 0 0 bit 0/force resynchronization (resync). a low-to-high transition forces the receive bert synchronizer to resynchronize to the incoming data stream. this bit shoul d be toggled from low to high whenever the host wishes to acquire synchronization on a new pattern. must be cl eared and set again for a subsequent resynchronization. bit 1/load bit and error counters (lc). a low-to-high transition latches the current bit and error counts into registers bbc1/bbc2/bbc3/bbc4 and bec1/bec2/bec3 and clears the internal count. this bit should be toggled from low to high whenever the host wishes to begin a new acquisition period. must be cleared and set again for subsequent loads. bits 2 to 4/pattern select bits (ps0 to ps2) ps2 ps1 ps0 pattern definition 0 0 0 pseudorandom 2e7 - 1 0 0 1 pseudorandom 2e11 - 1 0 1 0 pseudorandom 2e15 - 1 0 1 1 pseudorandom pattern qrss. a 2 20 - 1 pattern with 14 consecutive zero restrictions. 1 0 0 repetitive pattern 1 0 1 alternating word pattern 1 1 0 modified 55 octet (daly) pattern. the daly pattern is a repeating 55 octet pattern that is byte-aligned into the active ds0 time slots. the pattern is defined in an atis (alliance for telecommunications industry solutions) committee t1 technical report number 25 (november 1993). 1 1 1 pseudorandom 2e9 - 1 bit 5/receive invert-data enable (rinv) 0 = do not invert the incoming data stream 1 = invert the incoming data stream bit 6/transmit invert-data enable (tinv) 0 = do not invert the outgoing data stream 1 = invert the outgoing data stream bit 7/transmit pattern load (tc). a low-to-high transition loads the pattern generator with the pattern that is to be generated. this bit should be toggled from low to hi gh whenever the host wishes to load a new pattern. must be cleared and set again for subsequent loads. downloaded from: http:///
ds2155 173 of 238 register name: bc2 register description: bert control register 2 register address: e1h bit # 7 6 5 4 3 2 1 0 name eib2 eib1 eib0 sbe rpl3 rpl2 rpl1 rpl0 default 0 0 0 0 0 0 0 0 bits 0 to 3/repetitive pattern length bit 3 (rpl0 to rpl3). rpl0 is the lsb and rpl3 is the msb of a nibble that describes how long the repetitive pattern is. the valid range is 17 (0000) to 32 ( 1111). these bits are ignored if the receive bert is programmed for a pseudorandom patter n. to create repetitive patterns fewer than 17 bits in length, the user must set the length to an integer number of the desired length that is l ess than or equal to 32. for example, to create a 6-bit pattern, the user can set the length to 18 (0001) or to 24 (0111) or to 30 (1101). length (bits) rpl3 rpl2 rpl1 rpl0 17 0 0 0 0 18 0 0 0 1 19 0 0 1 0 20 0 0 1 1 21 0 1 0 0 22 0 1 0 1 23 0 1 1 0 24 0 1 1 1 25 1 0 0 0 26 1 0 0 1 27 1 0 1 0 28 1 0 1 1 29 1 1 0 0 30 1 1 0 1 31 1 1 1 0 32 1 1 1 1 bit 4/single bit-error insert (sbe). a low-to-high transition creates a single-bit error. must be cleared and set again for a subsequent bit error to be inserted. bits 5 to 7/error insert bits 0 to 2 (eib0 to eib2). automatically inserts bit errors at the prescribed rate into the generated data pattern. can be used fo r verifying error-detection features. eib2 eib1 eib0 error rate inserted 0 0 0 no errors automatically inserted 0 0 1 10e-1 0 1 0 10e-2 0 1 1 10e-3 1 0 0 10e-4 1 0 1 10e-5 1 1 0 10e-6 1 1 1 10e-7 downloaded from: http:///
ds2155 174 of 238 register name: sr9 register description: status register 9 register address: 26h bit # 7 6 5 4 3 2 1 0 name bbed bbco bec0 bra1 bra0 brlos bsync default 0 0 0 0 0 0 0 0 bit 0/bert in synchronization condition (bsync). set when the incoming pattern matches for 32 consecutive bit positions. refer to bsync in the info2 register for a real -time version of this bit. this is a double interrupt bit (section 6.2 ). bit 1/bert receive loss-of-synchronization condition (brlos). a latched bit that is set whenever the receive bert begins searching for a pattern. once synchroniza tion is achieved, this bit remains set until read. this is a double interrupt bit (section 6.2 ). bit 2/bert receive all-zeros condition (bra0). a latched bit that is set when 32 consecutive 0s are received. allowed to be cleared once a 1 is received. this is a double interrupt bit (section 6.2 ). bit 3/bert receive all-ones condition (bra1). a latched bit that is set when 32 consecutive 1s are received. allowed to be cleared once a 0 is received. this is a double interrupt bit (section 6.2 ). bit 4/bert error-counter overf low (beco) event (beco). a latched bit that is set when the 24-bit bert error counter (bec) overflows. cleared when read a nd is not set again until another overflow occurs. bit 5/bert bit-counter overflow event (bbco). a latched bit that is set when the 32-bit bert bit counter (bbc) overflows. cleared when read and is not set again until another overflow occurs. bit 6/bert bit-error detected (bed) event (bbed). a latched bit that is set when a bit error is detected. the receive bert must be in synchronization for it to detect bit errors. cleared when read. downloaded from: http:///
ds2155 175 of 238 register name: imr9 register description: interrupt mask register 9 register address: 27h bit # 7 6 5 4 3 2 1 0 name bbed bbco bec0 bra1 bra0 brlos bsync default 0 0 0 0 0 0 0 0 bit 0/bert in synchronization condition (bsync) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges bit 1/receive loss-of-synchronization condition (brlos) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges bit 2/receive all-zeros condition (bra0) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges bit 3/receive all-ones condition (bra1) 0 = interrupt masked 1 = interrupt enabledinterrupts on rising and falling edges bit 4/bert error-counter overflow event (beco) 0 = interrupt masked 1 = interrupt enabled bit 5/bert bit-counter overflow event (bbco) 0 = interrupt masked 1 = interrupt enabled bit 6/bit-error detected event (bbed) 0 = interrupt masked 1 = interrupt enabled bert alternating word-count rate. when the bert is programmed in the alternating word mode, the words repeat for the count loaded into this register then flip to the other word and again repeat for the number of times loaded into this register. register name: bawc register description: bert alternating word-count rate register address: dbh bit # 7 6 5 4 3 2 1 0 name acnt7 acnt6 acnt5 acnt4 acnt3 acnt2 acnt1 acnt0 default 0 0 0 0 0 0 0 0 bits 0 to 7/alternating word-count rate bits 0 to 7 (acnt0 to acnt7). acnt0 is the lsb of the 8-bit alternating word-count rate counter. downloaded from: http:///
ds2155 176 of 238 26.4 bert repetitive pattern set these registers must be properly loaded for the bert to generate and synchronize to a repetitive pattern, a pseudorandom pattern, alternating wo rd pattern, or a daly pattern. for a repetitive pattern that is fewer than 32 bits, the pattern should be repeated so that all 32 bits are used to describe the pattern. for example, if the pattern was the re peating 5-bit pattern 01101 (where th e rightmost bit is the one sent first and received first), then brp1 should be loaded with adh, brp 2 with b5h, brp3 with d6h, and brp4 with 5ah. for a pseudorandom patte rn, all four registers should be lo aded with all 1s (i.e., ffh). for an alternating word pattern, one word should be placed into brp1 and brp2 and the other word should be placed into brp3 and brp4. for example, if the dds stress pattern 7e is to be described, the user would place 00h in brp1, 00h in brp2, 7e h in brp3, and 7eh in brp4 and the alternating word counter would be set to 50 (decimal) to allo w 100 bytes of 00h followed by 100 bytes of 7eh to be sent and received. register name: brp1 register description: bert repetitive pattern set register 1 register address: dch bit # 7 6 5 4 3 2 1 0 name rpat7 rpat6 rpat5 rpat4 rpat3 rpat2 rpat1 rpat0 default 0 0 0 0 0 0 0 0 bits 0 to 7/bert repetitive pattern set bits 0 to 7 (rpat0 to rpat7). rpat0 is the lsb of the 32-bit repetitive pattern set. register name: brp2 register description: bert repetitive pattern set register 2 register address: ddh bit # 7 6 5 4 3 2 1 0 name rpat15 rpat14 rpat13 rpat12 rpat11 rpat10 rpat9 rpat8 default 0 0 0 0 0 0 0 0 bits 0 to 7/bert repetitive pattern set bits 8 to 15 (rpat8 to rpat15) register name: brp3 register description: bert repetitive pattern set register 3 register address: deh bit # 7 6 5 4 3 2 1 0 name rpat23 rpat22 rpat21 rpat20 rpat19 rpat18 rpat17 rpat16 default 0 0 0 0 0 0 0 0 bits 0 to 7/bert repetitive pattern set bits 16 to 23 (rpat16 to rpat23) register name: brp4 register description: bert repetitive pattern set register 4 register address: dfh bit # 7 6 5 4 3 2 1 0 name rpat31 rpat30 rpat29 rpat28 rpat27 rpat26 rpat25 rpat24 default 0 0 0 0 0 0 0 0 bits 0 to 7/bert repetitive pattern set bits 24 to 31 (rpat24 to rpat31). rpat31 is the lsb of the 32-bit repetitive pattern set. downloaded from: http:///
ds2155 177 of 238 26.5 bert bit counter once bert has achieved synchronization, this 32-bit coun ter increments for each data bit (i.e., clock) received. toggling the lc c ontrol bit in bc1 can clear this counter. this counter saturates when full and sets the bbco status bit. register name: bbc1 register description: bert bit count register 1 register address: e3h bit # 7 6 5 4 3 2 1 0 name bbc7 bbc6 bbc5 bbc4 bbc3 bbc2 bbc1 bbc0 default 0 0 0 0 0 0 0 0 bits 0 to 7/bert bit counter bits 0 to 7 (bbc0 to bbc7). bbc0 is the lsb of the 32-bit counter. register name: bbc2 register description: bert bit count register 2 register address: e4h bit # 7 6 5 4 3 2 1 0 name bbc15 bbc14 bbc13 bbc12 bbc11 bbc10 bbc9 bbc8 default 0 0 0 0 0 0 0 0 bits 0 to 7/bert bit counter bits 8 to 15 (bbc8 to bbc15) register name: bbc3 register description: bert bit count register 3 register address: e5h bit # 7 6 5 4 3 2 1 0 name bbc23 bbc22 bbc21 bbc20 bbc19 bbc18 bbc17 bbc16 default 0 0 0 0 0 0 0 0 bits 0 to 7/bert bit counter bits 16 to 23 (bbc16 to bbc23) register name: bbc4 register description: bert bit count register 4 register address: e6h bit # 7 6 5 4 3 2 1 0 name bbc31 bbc30 bbc29 bbc28 bbc27 bbc26 bbc25 bbc24 default 0 0 0 0 0 0 0 0 bits 0 to 7/bert bit counter bits 24 to 31 (bbc24 to bbc31). bbc31 is the msb of the 32-bit counter. downloaded from: http:///
ds2155 178 of 238 26.6 bert error counter once bert has achieved synchronization, this 24-bit c ounter increments for each data bit received in error. toggling the lc control bit in bc1 can clear this counter. this counter saturates when full and sets the beco status bit. register name: bec1 register description: bert error-count register 1 register address: e7h bit # 7 6 5 4 3 2 1 0 name ec7 ec6 ec5 ec4 ec3 ec2 ec1 ec0 default 0 0 0 0 0 0 0 0 bits 0 to 7/error counter bits 0 to 7 (ec0 to ec7). ec0 is the lsb of the 24-bit counter. register name: bec2 register description: bert error-count register 2 register address: e8h bit # 7 6 5 4 3 2 1 0 name ec15 ec14 ec13 ec12 ec11 ec10 ec9 ec8 default 0 0 0 0 0 0 0 0 bits 0 to 7/error counter bits 8 to 15 (ec8 to ec15) register name: bec3 register description: bert error-count register 3 register address: e9h bit # 7 6 5 4 3 2 1 0 name ec23 ec22 ec21 ec20 ec19 ec18 ec17 ec16 default 0 0 0 0 0 0 0 0 bits 0 to 7/error counter bits 16 to 23 (ec16 to ec23). ec0 is the msb of the 24-bit counter. downloaded from: http:///
ds2155 179 of 238 register name: bic register description: bert interface control register register address: eah bit # 7 6 5 4 3 2 1 0 name rfus tbat tfus bertdir berten default 0 0 0 0 0 0 0 0 bit 0/bert enable (berten) 0 = bert disabled 1 = bert enabled bit 1/bert direction (bertdir) 0 = network bert transmits toward the network (ttip and tring) and receives from the network (rtip and rring). the bert pattern can be looped back to the receiver internally by using the framer loopback function. 1 = system bert transmits toward the system backplane (rser ) and receives from the system backplane (tser). bits 2, 5, 7/unused, must be set to 0 for proper operation bit 3/transmit framed/unframed select (tfus) 0 = bert does not source data into the f-bit position (framed) 1 = bert does source data into the f-bit position (unframed) bit 4/transmit byte-align toggle (tbat). a 0-to-1 transition forces the bert to byte align its pattern with the transmit formatter. this bit must be transiti oned in order to byte align the daly pattern. bit 6/receive framed/unframed select (rfus) 0 = bert is not sent data from the f-bit position (framed) 1 = bert is sent data from the f-bit position (unframed) downloaded from: http:///
ds2155 180 of 238 27. payload error-insertion function (t1 mode only) an error-insertion function is avai lable in the ds2155 and is used to create errors in the payload portion of the t1 frame in the transmit path. this function is only available in t1 mode . errors can be inserted over the entire frame or the user can select which channels are to be corrupted. errors are created by inverting the last bit in the count sequence. for example, if th e error rate 1 in 16 is selected, the 16th bit is inverted. f-bits are excluded from the count and ar e never corrupted. error rate changes occur on frame boundaries. error-insertion options include continuous and absolute number with both options supporting selectable insertion rates. table 27-a. transmit erro r-insertion setup sequence step action 1 enter desired error rate in the erc regist er. note: if er3 through er0 = 0, no errors are generated even if the constant error-insertion feature is enabled. 2a or 2b for constant error insertion, set ce = 1 (erc.4). for a defined number of errors: C set ce = 0 (erc.4) C load noe1 and noe2 with the number of errors to be inserted C toggle wnoe (erc.7) from 0 to 1 to begin error insertion downloaded from: http:///
ds2155 181 of 238 register name: erc register description: error-rate control register register address: ebh bit # 7 6 5 4 3 2 1 0 name wnoe ce er3 er2 er1 er0 default 0 0 0 0 0 0 0 0 bits 0 to 3/error-insertion rate select bits (er0 to er3) er3 er2 er1 er0 error rate 0 0 0 0 no errors inserted 0 0 0 1 1 in 16 0 0 1 0 1 in 32 0 0 1 1 1 in 64 0 1 0 0 1 in 128 0 1 0 1 1 in 256 0 1 1 0 1 in 512 0 1 1 1 1 in 1024 1 0 0 0 1 in 2048 1 0 0 1 1 in 4096 1 0 1 0 1 in 8192 1 0 1 1 1 in 16,384 1 1 0 0 1 in 32,768 1 1 0 1 1 in 65,536 1 1 1 0 1 in 131,072 1 1 1 1 1 in 262,144 bit 4/constant errors (ce). when this bit is set high (and the er0 to er3 bits are not set to 0000), the error- insertion logic ignores the number-of-error registers (noe1, noe2) and generates errors constantly at the selected insertion rate. when ce is set to 0, the noex regist ers determine how many errors are to be inserted. bits 5, 6/unused, must be set to 0 for proper operation bit 7/write noe registers (wnoe). if the host wishes to update to the noex registers, this bit must be toggled from a 0 to a 1 after the host has already loaded the prescr ibed error count into the noex registers. the toggling of this bit causes the error count loaded into the noex registers to be loaded into the error-insertion circuitry on the next clock cycle. subsequent updates require that the wnoe bit be set to 0 and then 1 once again. downloaded from: http:///
ds2155 182 of 238 27.1 number-of-errors registers the number-of-error registers determine how many e rrors are generated. up to 1023 errors can be generated. the host loads the number of errors to be generated into the noe1 and noe2 registers. the host can also update the number of erro rs to be created by first loading the prescribed value into the noe registers and then toggling the wnoe bit in the error-rate control registers. table 27-b. error insertion examples value write read 000h do not create any errors no errors left to be inserted 001h create a single error one error left to be inserted 002h create two errors two errors left to be inserted 3ffh create 1023 errors 1023 errors left to be inserted register name: noe1 register description: number-of-errors 1 register address: ech bit # 7 6 5 4 3 2 1 0 name c7 c6 c5 c4 c3 c2 c1 c0 default 0 0 0 0 0 0 0 0 bits 0 to 7/number-of-errors counter bits 0 to 7 (c0 to c7). bit c0 is the lsb of the 10-bit counter. register name: noe2 register description: number-of-errors 2 register address: edh bit # 7 6 5 4 3 2 1 0 name c9 c8 default 0 0 0 0 0 0 0 0 bits 0, 1/number-of-errors count er bits 8 to 9 (c8 to c9). bit c9 is the msb of the 10-bit counter. downloaded from: http:///
ds2155 183 of 238 27.1.1 number-of-errors left register the host can read the noelx registers at any time to de termine how many errors are left to be inserted. register name: noel1 register description: number-of-errors left 1 register address: eeh bit # 7 6 5 4 3 2 1 0 name c7 c6 c5 c4 c3 c2 c1 c0 default 0 0 0 0 0 0 0 0 bits 0 to 7/number-of-errors left counter bits 0 to 7 (c0 to c7). bit c0 is the lsb of the 10-bit counter. register name: noel2 register description: number-of-errors left 2 register address: efh bit # 7 6 5 4 3 2 1 0 name c9 c8 default 0 0 0 0 0 0 0 0 bits 0, 1/number-of-errors left co unter bits 8 to 9 (c8 to c9). bit c9 is the msb of the 10-bit counter. downloaded from: http:///
ds2155 184 of 238 28. interleaved pcm bus operation (ibo) in many architectures, the pcm outputs of individual framers are combined into higher speed pcm buses to simplify transport across the system backplane. the ds2155 can be configured to allow pcm data to be multiplexed into higher speed buses eliminating external hardware, saving board space and cost. the ds2155 can be configured for channel or frame interleave. the interleaved pcm bus operation (ibo) supports three bus speeds. the 4.096mhz bus speed allows two pcm data streams to share a common bus. the 8.192mhz bus speed allows four pcm data streams to share a common bus. the 16.384mhz bus speed allows eight pcm data stream s to share a common bus. see figure 28-1 for an example of four transceivers sharing a common 8.192mhz pcm bus. the receive elastic stores of each tr ansceiver must be enabled. through the ibo register, the user can configure each transceiver for a specific bus position. for all ibo bus configurations, each transceiver is assigned an exclusive position in th e high-speed pcm bus. the 8khz frame sync can be generated from the system backplane or from the first device on th e bus. all other devices on the bus must have their frame syncs configured as inputs. relative to this common frame sync, the devi ces await their turn to drive or sample the bus according to the settings of the da0, da1, a nd da2 bits of the iboc register. 28.1 channel interleave in channel interleave mode, data is output to the pcm data-out bus one channel at a time from each of the connected ds2155s until all channels of frame n from each ds2155 have been placed on the bus. this mode can be used even when the ds2155s are opera ting asynchronous to each other. the elastic stores manage slip conditions ( figure 35-22 ). 28.2 frame interleave in frame interleave mode, data is output to the pcm data-out bus one frame at a time from each of the ds2155s. this mode is used only when all connect ed ds2155s are operating in a synchronous fashion (all inbound t1 or e1 lines are synchronous) and ar e synchronous with the system clock (system clock derived from t1 or e1 line). slip cond itions are not allowed in this mode ( figure 35-23 ). downloaded from: http:///
ds2155 185 of 238 register name: iboc register description: interleave bus operation control register register address: c5h bit # 7 6 5 4 3 2 1 0 name ibs1 ibs0 ibosel iboen da2 da1 da0 default 0 0 0 0 0 0 0 0 bits 0 to 2/device assignment bits (da0 to da2) da2 da1 da0 device position on bus 0 0 0 1st 0 0 1 2nd 0 1 0 3rd 0 1 1 4th 1 0 0 5th 1 0 1 6th 1 1 0 7th 1 1 1 8th bit 3/interleave bus operation enable (iboen) 0 = ibo disabled 1 = ibo enabled bit 4/interleave bus operation select (ibosel). this bit selects channel or frame interleave mode. 0 = channel interleave 1 = frame interleave bits 5, 6/ibo bus size bit 1 (ibs0 to ibs1). indicates how many devices are on the bus. ibs1 ibs0 bus size 0 0 two devices on bus 0 1 four devices on bus 1 0 eight devices on bus 1 1 reserved for future use bit 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 186 of 238 figure 28-1. ibo example rsysclk tsysclk rsync tssync rsig tsig tser rser rsysclk tsysclk rsig tsig tser rser rsysclk tsysclk rsigtsig tserrser rsysclk tsysclk rsigtsig tserrser 8.192mhz system clock in system 8khz frame sync in pcm data out pcm data in pcm signaling out pcm signaling in rsync tssync rsync tssync rsync tssync ds2155 #1 ds2155 #2 ds2155 #4 ds2155 #3 downloaded from: http:///
ds2155 187 of 238 29. extended system in formation bus (esib) the extended system information bus (esib) allows up to eight ds2155s to share an 8-bit cpu bus for reporting alarms and interrupt stat us as a group. with a single bus read, the host can be updated with alarm or interrupt status from all members of the group. there are two control registers (esibcr1 and esibcr2) and four information registers (esib1, esib2, esib3, and esib4). for example, eight ds2155s can be grouped into an esib group. a single read of the esib1 register of any member of the group yields the interrupt status of all eight ds2155s . therefore, the host can determine which device or devices are causing an interrupt wi thout polling all eight devices. through esib2, the host can gather synchronization status on all members of the gr oup. esib3 and esib4 can be programmed to report various alarms on a device-by-device basis. there are three device pins invol ved in forming an esib group: esibs0, esibs1, and esibrd. a 10k ? pullup resistor must be provided on esibs0, esibs1, and esibrd. figure 29-1. esib group of four ds2155s esib0 esib1 esibrd cpu i/f ds2155 # 1 esib0 esib1 esibrd cpu i/f ds2155 # 2 esib0 esib1 esibrd cpu i/f ds2155 # 3 esib0 esib1 esibrd cpu i/f ds2155 # 4 v dd 10k ? (3) downloaded from: http:///
ds2155 188 of 238 register name: esibcr1 register description: extended system information bus control register 1 register address: b0h bit # 7 6 5 4 3 2 1 0 name esibsel2 esibsel1 esibsel0 esien default 0 0 0 0 0 0 0 0 bit 0/extended system information bus enable (esien) 0 = disabled 1 = enabled bits 1 to 3/output data bus line select (esibsel0 to esibsel2). these bits tell the ds2155 what data bus bit to output the esib data on when one of the esib in formation registers is accessed. each member of the esib group must have a unique bit selected. esibsel2 esibsel1 esibsel0 bus bit driven 0 0 0 ad0 0 0 1 ad1 0 1 0 ad2 0 1 1 ad3 1 0 0 ad4 1 0 1 ad5 1 1 0 ad6 1 1 1 ad7 bits 4 to 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 189 of 238 register name: esibcr2 register description: extended system information bus control register 2 register address: b1h bit # 7 6 5 4 3 2 1 0 name esi4sel2 esi4sel1 esi4sel0 esi3sel2 esi3sel1 esi3sel0 default 0 0 0 0 0 0 0 0 bits 0 to 2/address esi3 data output select (esi3sel0 to esi3sel2). these bits select what status is to be output when the ds2155 decodes an esi3 address during a bus read operation. esi3sel2 esi3sel1 esi3sel0 status output (t1 mode) status output (e1 mode) 0 0 0 rbl rua1 0 0 1 ryel rra 0 1 0 lup rdma 0 1 1 ldn v52lnk 1 0 0 sigchg sigchg 1 0 1 esslip esslip 1 1 0 1 1 1 bit 3 / unused, must be set to 0 for proper operation bits 4 to 6/address esi4 data-output select (esi4sel0 to esi4sel2). these bits select what status is to be output when the ds2155 decodes an esi4 address during a bus read operation. esi4sel2 esi4sel1 esi4sel0 status output (t1 mode) status output (e1 mode) 0 0 0 rbl rua1 0 0 1 ryel rra 0 1 0 lup rdma 0 1 1 ldn v52lnk 1 0 0 sigchg sigchg 1 0 1 esslip esslip 1 1 0 1 1 1 bit 7/unused, must be set to 0 for proper operation downloaded from: http:///
ds2155 190 of 238 register name: esib1 register description: extended system information bus register 1 register address: b2h bit # 7 6 5 4 3 2 1 0 name disn disn disn disn disn disn disn disn default 0 0 0 0 0 0 0 0 bits 0 to 7/device interrupt status (disn). causes all devices participating in the esib group to output their interrupt status on the appropriate data bus line selected by the esibsel0 to esibsel2 bits of the esibcr1 register. register name: esib2 register description: extended system information bus register 2 register address: b3h bit # 7 6 5 4 3 2 1 0 name drlosn drlosn drlosn drlosn drlosn drlosn drlosn drlosn default 0 0 0 0 0 0 0 0 bits 0 to 7/device receive loss-of-sync (drlosn). causes all devices participating in the esib group to output their frame synchronization status on th e appropriate data bus line selected by the esibsel0 to esibsel2 bits of the esibcr1 register. register name: esib3 register description: extended system information bus register 3 register address: b4h bit # 7 6 5 4 3 2 1 0 name ust1n ust1n ust1n ust 1n ust1n ust1n ust1n ust1n default 0 0 0 0 0 0 0 0 bits 0 to 7/user-selected status 1 (ust1n). causes all devices participating in the esib group to output status or alarms as selected by the esi3sel0 to esi3sel2 bits in the esibcr2 configuration register on the appropriate data bus line selected by the esibsel0 to esibsel2 bits of the esibcr2 register register name: esib4 register description: extended system information bus register 4 register address: b5h bit # 7 6 5 4 3 2 1 0 name ust2n ust2n ust2n ust 2n ust2n ust2n ust2n ust2n default 0 0 0 0 0 0 0 0 bits 0 to 7/user-selected status 2 (ust2n). causes all devices participating in the esib group to output status or alarms as selected by the esi4sel0 to esi4sel2 bits in the esibcr2 configuration register on the appropriate data bus line selected by the esibsel0 to esibsel2 bits of the esibcr2 register downloaded from: http:///
ds2155 191 of 238 30. programmable backpl ane clock synthesizer the ds2155 contains an on-chip clock synthesizer th at generates a user-selec table clock output on the bpclk pin, referenced to the recovered receive cloc k (rclk). the synthesizer uses a phase-locked loop to generate low-jitter clocks. co mmon applications include generati on of port and backplane system clocks. the ccr2 register is used to enable (ccr2.0) and select (ccr 2.1 and ccr2.2) the clock frequency of the bpclk pin. register name: ccr2 register description: common control register 2 register address: 71h bit # 7 6 5 4 3 2 1 0 name bpcs1 bpcs0 bpen default 0 0 0 0 0 0 0 0 bit 0/backplane clock enable (bpen) 0 = disable bpclk pin (pin held at logic 0) 1 = enable bpclk pin bits 1, 2/backplane clock selects (bpcs0, bpcs1) bpcs1 bpcs0 bpclk frequency (mhz) 0 0 16.384 0 1 8.192 1 0 4.096 1 1 2.048 bits 3 to 7/ unused, must be set to 0 for proper operation 31. fractional t1/e1 support the ds2155 can be programmed to output gapped cloc ks for selected channels in the receive and transmit paths to simplify connections into a usar t or lapd controller in fractional t1/e1 or isdn- pri applications. the receive and transmit paths ha ve independent enables. channel formats supported include 56kbps and 64kbps. this is accomplished by a ssigning an alternate func tion to the rchclk and tchclk pins. setting ccr3.0 = 1 cau ses the rchclk pin to output a gapped clock as defined by the receive fractional t1/e1 function of the pcpr regi ster. setting ccr3.2 = 1 cau ses the tchclk pin to output a gapped clock as defined by the transmit fractional t1/e1 func tion of the pcpr register. ccr3.1 and ccr3.3 can be used to select between 64kbps and 56kbps operation. see section 7 for details about programming the per-channel function. in t1 mode no clock is generated at the f-bit position. when 56kbps mode is selected, the ls b clock in the channel is omitted. only the seven most significant bits of the channel have clocks. downloaded from: http:///
ds2155 192 of 238 register name: ccr3 register description: common control register 3 register address: 72h bit # 7 6 5 4 3 2 1 0 name tmss intdis - - tdatfmt tgpcken rdatfmt rgpcken default 0 0 0 0 0 0 0 0 bit 0/receive gapped-clock enable (rgpcken) 0 = rchclk functions normally 1 = enable gapped bit-clock output on rchclk bit 1/receive channel-data format (rdatfmt) 0 = 64kbps (data contained in all 8 bits) 1 = 56kbps (data contained in seven out of the 8 bits) bit 2/transmit gapped-clock enable (tgpcken) 0 = tchclk functions normally 1 = enable gapped bit-clock output on tchclk bit 3/transmit channel-data format (tdatfmt) 0 = 64kbps (data contained in all 8 bits) 1 = 56kbps (data contained in seven out of the 8 bits) bit 4/ unused, must be set to 0 for proper operation bit 5/ unused, must be set to 0 for proper operation bit 6/interrupt disable (intdis). this bit is convenient for disabling in terrupts without altering the various interrupt mask register settings. 0 = interrupts are enabled according to the various mask register settings 1 = interrupts are disabled regardless of the mask register settings bit 7/transmit multiframe sync source (tmss). should be set = 0 only when transmit hardware signaling is enabled. 0 = elastic store is source of multiframe sync 1 = framer or tsync pin is source of multiframe sync downloaded from: http:///
ds2155 193 of 238 32. user-programmable output pins the ds2155 provides four user-progr ammable output pins. the pins are automatically cleared to 0 at power-up or as a result of a hard ware- or software-issued reset. register name: ccr4 register description: common control register 4 register address: 73h bit # 7 6 5 4 3 2 1 0 name rlt3 rlt2 rlt1 rlt0 uop3 uop2 uop1 uop0 default 0 0 0 0 0 0 0 0 bit 0/user-defined output 0 (uop0) 0 = logic 0 level at pin 1 = logic 1 level at pin bit 1/user-defined output 1 (uop1) 0 = logic 0 level at pin 1 = logic 1 level at pin bit 2/user-defined output 2 (uop2) 0 = logic 0 level at pin 1 = logic 1 level at pin bit 3/user-defined output 3 (uop3) 0 = logic 0 level at pin 1 = logic 1 level at pin bits 4 to 7/receive level threshold bits (rlt0 to rlt3) rlt3 rlt2 rlt1 rlt0 receive level (db) 0 0 0 0 greater than -2.5 0 0 0 1 -2.5 0 0 1 0 -5.0 0 0 1 1 -7.5 0 1 0 0 -10.0 0 1 0 1 -12.5 0 1 1 0 -15.0 0 1 1 1 -17.5 1 0 0 0 -20.0 1 0 0 1 -22.5 1 0 1 0 -25.0 1 0 1 1 -27.5 1 1 0 0 -30.0 1 1 0 1 -32.5 1 1 1 0 -35.0 1 1 1 1 less than -37.5 downloaded from: http:///
ds2155 194 of 238 33. transmit flow diagrams figure 33-1. t1 transmit flow diagram escr.4 tese tser tsig hsie1-3 through pcpr tx estore off-chipconnection rdata from t1_rcv_logic lbcr1.1 plb hdlc engine #1 thms1 h1tc.4 h1tcs1-3 h1ttsbs hdlc engine #2 thms2 h2tc.4 h2tcs1-3 h2ttsbs pclr1-3 t1 transmit flow diagram key - pin- selector - register hardware signaling estore mux payload loopback hdlc mux #1 hdlc mux #2 hdlc fdl #2 hdlc fdl #1 tdata teso tlink h1tc.4thms1 fdl mux tfdl tx fdl zero stuffer h2tc.4thms2 t1tcr2.5tzse t1tcr1.2tfdls tfdl boc engine boc mux bocc.0 sboc idle code mux idle codearray tcice1-3 loop code gen loop code d4 12th fs yellow alarm fps or ft/fs insertion esf yellow alarm t1ccr1.2 tfm t1tcr2.2 td4ym t1tcr1.0 tyel per-channel loopback software sig software sig registers ssie1-3 f-bit mux tfpt t1tcr1.5 to fdl mux to esf yellow mux to fdl mux tloop t1ccr1.0 downloaded from: http:///
ds2155 195 of 238 b8zs encoding bipolar/ nrz coding t1tcr2.7 b8zse iocr1.0 odf 1/2 clk/ full clk ccr1.4 odm tpos tneg fdl mux esf yellow from boc mux from f-bit mux from esf yellow alarm tfpt t1tcr1.5 tfm t1ccr1.2 tyel t1tcr1.0 crc mux tcpt t1tcr1.5 d4 bit 2 yellow alm bert engine bert mux f-bit corruption payload error insertion tfm t1ccr1.2 td4ym t1tcr2.2 tyel t1tcr1.0 tfus bic.3 f-bit btcs1-3 from pcpr bertenbic.0 t1tcr2.3 fbct1 t1tcr2.4 fbct2 noel != 0 peics1-3 erc.4 ce bit 7 stuffing pulse density enforcer crc calculation ds0 monitor blue alarm b7se t1tcr2.0 ssie1-3 gb7s t1tcr1.3 tpdv info1.6 t1ccr1.1 pde tcm0-4 tds0sel.0 - .3 tdsom t1tcr1.1 tbl downloaded from: http:///
ds2155 196 of 238 figure 33-2. e1 transmit flow diagram tser tsig hsie1-4 through pcpr tx estore escr.4 tese teso tdata off-chip connection rdata from e1_rcv_logic lbcr1.1 plb hdlc engine #1 thms1 h1tc.4 h1tcs1-4 h1ttsbs t1sabe4- t1sabe8 thms1 h1tc.4 h1ttsbs.4 - h1ttsbs.0 hdlc engine #2 thms2 h2tc.4 h2tcs1-4 h2ttsbs t2sabe4-t2sabe8 thms2 h2tc.4 h2ttsbs.4 - h2ttsbs.0 btcs1-4 berten (bic.0) from pcpr bert engine to per-channel mux e1 transmit flow diagram key - pin - selector - register hardware signaling estore mux payload loopback mux hdlc ds0 mux #1 hdlc sa-bit mux #1 hdlc ds0 mux #2 bert mux hdlc sa-bit mux #2 idle code mux idle code array tcice1-4 downloaded from: http:///
ds2155 197 of 238 per-channel loopback from idle code mux rdatafrom e1_rcv_logic pclr1-4 sa-bit mux tnaf thms1thms2 h1tc.4h2tc.4 ts0 mux taf/tnaf(non sa) si-bit mux e1tcr1.4 tsis auto e- bit gen tlink mux tlink auto ra gen tsacr mux sa4s - sa8s e1tcr2.2 aebee1tcr2.5 - e1tcr2.7 e1tcr2.8 ara tsiaf tsinaf tra tsa4 tsa5 tsa6 tsa7tsa8 tsacr software sig tsa1 e1tcr1.3 ts1-16 ssie1-4 e1tcr1.0 t16s si/crc4 mux e1tcr1.0 tcrc4 si = crc4 mf align word(does not overwrite e-bits) crc calculate crc re- calculate e1tcr1.0 tcrc4ccr1.6 crc4r ds0 monitor tcm0-tcm4 tdsom auto ais gen ua1 gen e1tcr2.1 aais e1tcr1.5 tua1 hdb3 encoding e1tcr1.2 thdb3 to bipolar/nrz coding mux e1 transmit flow diagram tfpt e1tcr1.7 tds0sel.0 - tds0sel.4 downloaded from: http:///
ds2155 198 of 238 bipolar/ nrz coding iocr1.0 odf flb select flb lbcr1.0 to receiver rlb mux rlb mux rpos rneg rlb lbcr1.2 1/2 clk/ full clk ccr1.4 odm tpos tneg from hdb3 encoding mux e1 transmit flow diagram downloaded from: http:///
ds2155 199 of 238 34. jtag boundary scan archi tecture and test access port 34.1 description the ds2155 ieee 1149.1 design supports the sta ndard instruction codes sample/preload, bypass, and extest. optional public instructi ons included are high-z, clamp, and idcode ( figure 34-1. ). the ds2155 contains the following featur es as required by ieee 1149.1 standard test access port (tap) and boundary scan architecture. test access port tap controller instruction register bypass register boundary scan register device identification register the ds2155 is pin-compatible with the ds 2152, ds21x52 (t1) and ds2154, ds21x54 (e1) sct families. the jtag feature uses pins that had no function in the ds2152 and ds2154. details about boundary scan architecture and the tap are in ieee 1149.1-1990, ieee 1149.1a-1993, and ieee 1149.1b-1994. note: jtag functionality is prod uction tested at 25c only. the tap contains the necessary interface pins jt rst, jtclk, jtms, jtdi, and jtdo. see the pin descriptions in section 4 for details. figure 34-1. jtag functional block diagram +v boundary scan register identification register bypass register instruction register jtdi jtms jtclk jtrst jtdo +v +v test access port controller mux 10k ? 10k ? 10k ? select output enable downloaded from: http:///
ds2155 200 of 238 tap controller state machine the tap controller is a finite stat e machine that responds to the logic level at jtms on the rising edge of jtclk ( figure 34-2 ). test-logic-reset upon power-up, the tap controlle r is in the test-logic-reset state. th e instruction register contains the idcode instruction. all system logi c of the device operates normally. run-test-idle the run-test-idle is used between scan operations or during specific tests. the instruction register and test registers remain idle. select-dr-scan all test registers retain their previous state. with jtms low, a rising edge of jtclk moves the controller into the capture-dr state and initiates a scan sequence. jtms high during a rising edge on jtclk moves the controller to the select-ir-scan state. capture-dr data can be parallel-loaded into the test data register s selected by the current instruction. if the instruction does not call for a parallel load or the selected regist er does not allow parallel loads, the test register remains at its current value. on the rising edge of jtclk, the controller goes to the shift-dr state if jtms is low or it goes to the exit1-dr state if jtms is high. shift-dr the test data register selected by the current instru ction is connected between jtdi and jtdo and shifts data one stage toward its serial output on each rising edge of jtclk. if a test register selected by the current instruction is not placed in the seri al path, it maintains its previous state. exit1-dr while in this state, a rising edge on jtclk puts the controller in the update-dr state, which terminates the scanning process, if jtms is high. a rising edge on jtclk with jtms low puts the controller in the pause-dr state. pause-dr shifting of the test registers is halted while in th is state. all test regist ers selected by the current instruction retain their previous state. the controlle r remains in this state while jtms is low. a rising edge on jtclk with jtms high puts the controller in the exit2-dr state. exit2-dr a rising edge on jtclk with jtms high while in this state puts the controller in the update-dr state and terminates the scanning process. a rising edge on jtclk with jtms low enters the shift-dr state. update-dr a falling edge on jtclk while in the update-dr state latches the data from the shift register path of the test registers into the data output latches. this prev ents changes at the parallel output because of changes in the shift register. downloaded from: http:///
ds2155 201 of 238 select-ir-scan all test registers retain their previo us state. the instruction register re mains unchanged duri ng this state. with jtms low, a rising edge on jtclk moves the c ontroller into the capture-ir state and initiates a scan sequence for the instruction register. jtms hi gh during a rising edge on jtclk puts the controller back into the test-logic-reset state. capture-ir the capture-ir state is used to load the shift register in the instruction register with a fixed value. this value is loaded on the rising edge of jtclk. if jtms is high on the rising edge of jtclk, the controller enters the exit1-ir state. if jtms is low on the rising edge of jtclk, the controller enters the shift-ir state. shift-ir in this state, the shift register in the instruction register is connected between jtdi and jtdo and shifts data one stage for every rising edge of jtclk toward the serial output. the parallel register and all test registers remain at their previous states. a rising edge on jtclk w ith jtms high moves the controller to the exit1-ir state. a rising edge on jtclk with jtms low keeps the controller in the shift-ir state while moving data one stage through the instruction shift register. exit1-ir a rising edge on jtclk with jtms low puts the controll er in the pause-ir state. if jtms is high on the rising edge of jtclk, the controller enters the update-ir state and terminates the scanning process. pause-ir shifting of the instruction shift register is halted temporarily. with jtms high, a rising edge on jtclk puts the controller in the exit2-ir state. the controll er remains in the pause-ir state if jtms is low during a rising edge on jtclk. exit2-ir a rising edge on jtclk with jtms low puts the contro ller in the update-ir stat e. the controller loops back to shift-ir if jtms is high during a rising edge of jtclk in this state. update-ir the instruction code shifted into the instruction shif t register is latched into the parallel output on the falling edge of jtclk as the contro ller enters this state. once latched, this instruction becomes the current instruction. a rising edge on jtclk with jt ms low puts the controller in the run-test-idle state. with jtms high, the controller enters the select-dr-scan state. downloaded from: http:///
ds2155 202 of 238 figure 34-2. tap controller state diagram 34.2 instruction register the instruction register contains a shif t register as well as a latched parall el output and is 3 bits in length. when the tap controller enters the shift-ir state, the instruction shift register is connected between jtdi and jtdo. while in the shift-ir state, a rising edge on jtclk with jtms low shifts the data one stage toward the serial output at jtdo. a rising edge on jt clk in the exit1-ir state or the exit2-ir state with jtms high moves the controller to the update-ir st ate. the falling edge of that same jtclk latches the data in the instruction shift re gister to the instruction parallel output. instructions supported by the ds2155 and its respective operationa l binary codes are shown in table 17-a . 10 0 1 11 1 11 1 1 11 1 1 00 0 00 1 0 0 0 0 1 1 0 0 0 0 select dr-scan capture dr shift dr exit dr pause dr exit2 dr update dr select ir-scan capture ir shift ir exit ir pause ir exit2 ir update ir test logic reset run test/ idle 0 downloaded from: http:///
ds2155 203 of 238 table 34-a. instruction codes for ieee 1149.1 architecture instruction selected register instruction codes sample/preload boundary scan 010 bypass bypass 111 extest boundary scan 000 clamp bypass 011 highz bypass 100 idcode device identification 001 sample/preload this is a mandatory instruction for the ieee 1149.1 spec ification that supports two functions. the digital i/os of the device can be sampled at the boundary s can register without inte rfering with the normal operation of the device by using th e capture-dr state. sample/prel oad also allows the device to shift data into the boundary scan register through jtdi using the shift-dr state. bypass when the bypass instruction is latched into the pa rallel instruction regist er, jtdi connects to jtdo through the 1-bit bypass test register. this allows data to pass from jtdi to jtdo without affecting the devices normal operation. extest this allows testing of all interconne ctions to the device. when the ex test instruction is latched in the instruction register, the following ac tions occur: once enabled through th e update-ir state, the parallel outputs of all digital output pins are driven. the bounda ry scan register is c onnected between jtdi and jtdo. the capture-dr samples all digital inputs into the boundary scan register. clamp all digital outputs of the device output data from the boundary scan parallel output while connecting the bypass register between jtdi and jtdo. the output s do not change during the clamp instruction. highz all digital outputs of the device are placed in a high- impedance state. the bypass register is connected between jtdi and jtdo. idcode when the idcode instruction is latched into the pa rallel instruction register, the identification test register is selected. the device identification code is loaded into the identification register on the rising edge of jtclk following entry into the capture-dr state. shift-dr can be used to shift the identification code out serially through jtdo. during test-logic-reset, the identification code is forced into the instruction registers parallel output. the id code always has a 1 in the lsb position. the next 11 bits identify the manufacturers jedec number and number of continuati on bytes followed by 16 bits for the device and 4 bits for the version ( table 34-b ). table 34-c lists the device id codes for the sct devices. downloaded from: http:///
ds2155 204 of 238 table 34-b. id code structure msb lsb version contact factory device id jedec 1 4 bits 16 bits 00010100001 1 table 34-c. device id codes part 16-bit id ds2155 0010h ds2156 0019h ds21354 0005h ds21554 0003h ds21352 0004h ds21552 0002h 34.3 test registers ieee 1149.1 requires a minimum of two te st registers, the boundary scan register and the bypass register. an optional test register, the iden tification register, has been included with the ds2155 design. it is used with the idcode instruction and the test-l ogic-reset state of the tap controller. 34.4 boundary scan register this register contains both a shift re gister path and a latched parallel ou tput for all control cells and digital i/o cells. it is n bits in length. see table 34-d for cell bit locations and definitions. 34.5 bypass register this is a single one-bit shift register used with the bypass, clamp, and high-z instructions that provides a short path between jtdi and jtdo. 34.6 identification register the identification register contains a 32-bit shift register and a 32-bit la tched parallel output. this register is selected during the idcode instruction and when th e tap controller is in th e test-logic-reset state. see table 34-b and table 34-c for more information on bit usage. downloaded from: http:///
ds2155 205 of 238 table 34-d. boundary scan control bits bit pin name type control bit function 3 1 rchblk o 2 jtms i 2 bpclk.cntl 0 = bpclk is an input 1 = bpclk is an output 1 3 bpclk i/o 4 jtclk i 5 jtrst i 0 6 rcl o 7 jtdi i 98 uop0.cntl 0 = uop0 is an input 1 = uop0 is an output 97 8 uop0 i/o 96 uop1.cntl 0 = uop1 is an input 1 = uop1 is an output 95 9 uop1 i/o 10 jtdo o 94 11 bts i 93 liuc.cntl 0 = liuc is an input 1 = liuc is an output 92 12 liuc i/o 91 13 8xclk o 90 14 tstrst i 89 15 uop2 o 16 rtip i 17 rring i 18 rvdd 19, 20, 24 rvss 21 mclk i 22 xtald o 88 uop3.cntl 0 = uop3 is an input 1 = uop3 is an output 87 23 uop3 i/o 86 25 int o 85 26 tusel i 27, 28 n.c. 29 ttip o 30 tvss 31 tvdd 32 tring o 84 tchblk.cntl 0 = tchblk is an input 1 = tchblk is an output 83 33 tchblk i/o 82 tlclk.cntl 0 = tlclk is an input 1 = tlclk is an output 81 34 tlclk i/o 80 35 tlink i 79 esibs0.cntl 0 = esibs0 is an input 1 = esibs0 is an output 78 36 esibs0 i/o 77 tsync.cntl 0 = tsync is an input 1 = tsync is an output 76 37 tsync i/o 75 38 tposi i downloaded from: http:///
ds2155 206 of 238 bit pin name type control bit function 74 39 tnegi i 73 40 tclki i 72 tclko.cntl 0 = tclko is an input 1 = tclko is an output 71 41 tclko i/o 70 tnego.cntl 0 = tnego is an input 1 = tnego is an output 69 42 tnego i/o 68 tposo.cntl 0 = tposo is an input 1 = tposo is an output 67 43 tposo i/o 44 dvdd 45 dvss 66 46 tclk i 65 47 tser i 64 48 tsig i 63 49 teso o 62 50 tdata i 61 51 tsysclk i 60 52 tssync i 59 tchclk.cntl 0 = tchclk is an input 1 = tchclk is an output 58 53 tchclk i/o 57 esibs1.cntl 0 = esibs1 is an input 1 = esibs1 is an output 56 54 esibs1 i/o 55 55 mux i 54 bus.cntl 0 = d0Cd7/ad0Cad7 are inputs 1 = d0Cd7/ad0Cad7 are inputs 53 56 d0/ad0 i/o 52 57 d1/ad1 i/o 51 58 d2/ad2 i/o 50 59 d3/ad3 i/o 60, 80, 84 dvss 61, 81, 83 dvdd 49 62 d4/ad4 i/o 48 63 d5/ad5 i/o 47 64 d6/ad6 i/o 46 65 d7/ad7 i/o 45 66 a0 i 44 67 a1 i 43 68 a2 i 42 69 a3 i 41 70 a4 i 40 71 a5 i 39 72 a6 i 38 73 ale(as)/a7 i 37 74 rd ( ds ) i 36 75 cs i 35 esibrd.cntl 0 = esibrd is an input 1 = esibrd is an output 34 76 esibrd i/o 33 77 wr (r/ w ) i 32 78 rlink o 31 79 rlclk o downloaded from: http:///
ds2155 207 of 238 bit pin name type control bit function 30 82 rclk o 29 85 rdata o 28 rposi.cntl 0 = rposi is an input 1 = rposi is an output 27 86 rposi i/o 26 rnegi.cntl 0 = rnegi is an input 1 = rnegi is an output 25 87 rnegi i/o 24 rclki.cntl 0 = rclki is an input 1 = rclki is an output 23 88 rclki i/o 22 89 rclko o 21 90 rnego o 20 91 rposo o 19 rchclk.cntl i/o 0 = rchclk is an input 1 = rchclk is an output 18 92 rchclk i/o 17 rsigf.cntl 0 = rsigf is an input 1 = rsigf is an output 16 93 rsigf i/o 15 rsig.cntl 0 = rsig is an input 1 = rsig is an output 14 94 rsig i/o 13 95 rser o 12 rmsync.cntl 0 = rmsync is an input 11 96 rmsync i/o 10 rfsync.cntl 0 = rfsync is an input 1 = rfsync is an output 9 97 rfsync i/o 8 rsync.cntl 0 = rsync is an input 1 = rsync is an output 7 98 rsync i/o 6 99 rlos/lotc o 5 rsysclk.cntl 0 = rsysclk is an input 1 = rsysclk in an output 4 100 rsysclk i/o downloaded from: http:///
ds2155 208 of 238 35. functional timing diagrams 35.1 t1 mode figure 35-1. receive-side d4 timing note 1: rsync in the frame mode (iocr1.5 = 0) and double-wide frame sync is not enabled (iocr1.6 = 0). note 2: rsync in the frame mode (iocr1.5 = 0) and double-wide frame sync is enabled (iocr1.6 = 1). note 3: rsync in the multiframe mode (iocr1.5 = 1). note 4: rlink data (fs bits) is updated one bit prior to even frames and held for two frames. figure 35-2. receive-side esf timing note 1: rsync in frame mode (iocr1.4 = 0) and double-wide frame sync is not enabled (iocr1.6 = 0). note 2: rsync in frame mode (iocr1.4 = 0) and double-wide frame sync is enabled (iocr1.6 = 1). note 3: rsync in multiframe mode (iocr1.4 = 1). note 4: zbtsi mode disabled (t1rcr2.2 = 0). note 5: rlink data (fdl bits) is updated one bit time before odd frames and held for two frames. note 6: zbtsi mode is enabled (t1rcr2.2 = 1). note 7: rlink data (z bits) is updated one bit time before odd frames and held for four frames. frame# 1 234567891 01 11 212345 4 rlink rlclk 3 rsync 1 rsync rfsync 2 rsync 123456789101112 1 23 6 rfsync frame# tlclk rsync rsync rsync tlink 13141516171819202122232412345 4 rlclk rlink 5 7 downloaded from: http:///
ds2155 209 of 238 figure 35-3. receive-side boundary timing (elastic store disabled) note 1: rchblk is programmed to block channel 24. note 2: shown is rlink/rlclk in the esf framing mode. figure 35-4. receive-side 1.544mhz boundary timing (elastic store enabled) note 1: rsync is in the output mode (iocr1.4 = 0). note 2: rsync is in the input mode (iocr1.4 = 1). note 3: rchblk is programmed to block channel 24. channel 23 channel 24 channel 1 channel 23 channel 24 channel 1 rclk rser rsync rfsync rsig rchclk rchblk 1 rlclk rlink 2 b a c/a d/b a c/a d/b lsb f msb msb lsb ab rser channel 23 channel 24 channel 1 rchclk rchblk rsysclk rsync 2 3 rsync 1 rmsync rsig lsb f msb msb lsb channel 23 channel 24 channel 1 b a c/a d/b a c/a d/b ab downloaded from: http:///
ds2155 210 of 238 figure 35-5. receive-side 2.048mhz boundary timing (elastic store enabled) rser channel 1 rchclk rchblk rsysclk rsync channel 31 channel 32 1 3 4 rsync 2 rmsync rsig channel 31 channel 32 b a c/a d/b c/a d/b ab channel 1 lsb msb lsb f 5 note 1: rser data in channels 1, 5, 9, 13, 17, 21, 25, and 29 are forced to 1. note 2: rsync is in the output mode (iocr1.4 = 0). note 3: rsync is in the input mode (iocr1.4 = 1). note 4: rchblk is forced to 1 in the same channels as rser (see note 1). note 5: the f-bit position is passed through the receive-side elastic store. figure 35-6. transmit-side d4 timing note 1: tsync in the frame mode (iocr1.2 = 0) and double-wide frame sync is not enabled (iocr1.1 = 0). note 2: tsync in the frame mode (iocr1.2 = 0) and double-wide frame sync is enabled (iocr1.1 = 1). note 3: tsync in the multiframe mode (iocr1.2 = 1). note 4: tlink data (fs bits) is sampled during the f-bit position of even frames for insertion into the outgoing t1 stream when enable d through t1tcr1.2. 1234567891 01 11 212345 1 23 4 tssync frame# tlclk tsync tsync tsync tlink downloaded from: http:///
ds2155 211 of 238 figure 35-7. transmit-side esf timing note 1: tsync in frame mode (iocr1.2 = 0) and double-wide frame sync is not enabled (iocr1.3 = 0). note 2: tsync in frame mode (iocr1.2 = 0) and double-wide frame sync is enabled (iocr1.3 = 1). note 3: tsync in multiframe mode (iocr1.2 = 1). note 4: tlink data (fdl bits) sampled during the f-bit time of odd frame and inserted into the outgoing t1 stream if enabled through t cr1.2. note 5: zbtsi mode is enabled (t1tcr2.1 = 1). note 6: tlink data (z bits) sampled during the f-bit time of frames 1, 5, 9, 13, 17, and 21 and inserted into the outgoing stream if en abled through t1tcr1.2. figure 35-8. transmit-side boundary timing (with elastic store disabled) note 1: tsync is in the output mode (iocr1.1 = 1). note 2: tsync is in the input mode (iocr1.1 = 0). note 3: tchblk is programmed to block channel 2. note 4: shown is tlink/tlclk in the esf framing mode. 123456789101112 1 23 6 tssync frame# tlclk tsync tsync tsync tlink 13141516171819202122232412345 4 tlclk tlink 5 lsb f msb lsb msb lsb msb channel 1 channel 2 channel 1 channel 2 abc/ad/b abc/ad/b tclk tser tsync tsync tsig tchclk tchblk tlclk tlink d/b 12 3 4 don't care downloaded from: http:///
ds2155 212 of 238 figure 35-9. transmit-side 1.544mhz boundary timing (elastic store enabled) note 1: tchblk is programmed to block channel 24 (if the tpcsi bit is set, then the signaling data at tsig is ignored during channel 2 4). figure 35-10. transmit-side 2.048mh z boundary timing (elastic store enabled) note 1: tser data in channels 1, 5, 9, 13, 17, 21, 25, and 29 is ignored. note 2: tchblk is programmed to block channel 31 (if the tpcsi bit is set, then the signaling data at tsig will be ignored). note 3: tchblk is forced to 1 in the same channels as tser is ignored (see note 1). note 4: the f-bit position for the t1 frame is sampled and passed through the transmit-side elastic store into the msb bit position of channel 1. (normally, the transmit-side formatter overwrites the f-bit position unless the formatter is programmed to pass through the f-b it position.) lsb f msb lsb msb channel 1 channel 24 abc/ad/b abc/ad/b tsysclk tser tssync tsig tchclk tchblk channel 23 a channel 23 channel 24 channel 1 1 lsb f lsb msb channel 1 channel 32 abc/ad/b abc/ad/b tsysclk tser tssync tsig tchclk tchblk channel 31 a channel 31 channel 32 channel 1 1 4 2,3 downloaded from: http:///
ds2155 213 of 238 35.2 e1 mode figure 35-11. receive-side timing note 1: rsync in frame mode (iocr1.5 = 0). note 2: rsync in multiframe mode (iocr1.5 = 1). note 3: rlclk is programmed to output just the sa bits. note 4: rlink always outputs all five sa bits as well as the rest of the receive data stream. note 5: this diagram assumes the cas mf begins in the raf frame. figure 35-12. receive-side boundary ti ming (with elastic store disabled) note 1: rchblk is programmed to block channel 1. note 2: rlclk is programmed to mark the sa4 bit in rlink. note 3: shown is a rnaf frame boundary. note 4: rsig normally contains the cas multiframe alignment nibble (0000) in channel 1. channel 32 channel 1 channel 2 channel 32 channel 1 channel 2 rclk rser rsync rfsync rsig rchclk rchblk 1 rlclk rlink 2 cd a lsb msb ab si 1 a sa4 sa5 sa6 sa7 sa8 sa4 sa5 sa6 sa7 sa8 b note 4 frame# 1 234567891 01 11 21 31 41 51 61 4 rlink rlclk 3 rsync 1 rsync rfsync 2 downloaded from: http:///
ds2155 214 of 238 figure 35-13. receive-side boundary ti ming, rsysclk = 1.544mhz (elastic store enabled) note 1: data from the e1 channels 1, 5, 9, 13, 17, 21, 25, and 29 is dropped (channel 2 from the e1 link is mapped to channel 1 of the t1 link, etc.) and the f-bit position is added (forced to on 1). note 2: rsync in the output mode (iocr1.4 = 0). note 3: rsync in the input mode (iocr1.4 = 1). note 4: rchblk is programmed to block channel 24. figure 35-14. receive-side boundary ti ming, rsysclk = 2.048mhz (elastic store enabled) note 1: rsync is in the output mode (iocr1.4 = 0). note 2 : rsync is in the input mode (iocr1.4 = 1). note 3: rchblk is programmed to block channel 1. note 4: rsig normally contains the cas multiframe alignment nibble (0000) in channel 1. rser channel 23/31 channel 24/32 channel 1/2 rchclk rchblk rsysclk rsync 2 3 rsync 1 rmsync lsb f msb msb lsb 4 rser channel 1 rchclk rchblk rsysclk rsync channel 31 channel 32 1 3 rsync 2 rmsync rsig channel 31 channel 32 c d ab channel 1 lsb msb lsb msb c d b a note 4 downloaded from: http:///
ds2155 215 of 238 figure 35-15. receive ibo channel interleave mode timing note 1: 4.096mhz bus configuration. note 2: 8.192mhz bus configuration. note 3: 16.384mhz bus configuration. note 4: rsync is in the input mode (iocr1.4 = 0). rser lsb rsysclk rsync framer2, channel 32 msb lsb framer 1, channel 1 rsig framer2, channel 32 framer 1, channel 1 msb lsb framer2, channel 1 framer2, channel 1 4 rser rsync rsig rser rsig f3 32 f4 32 f1 c1 f2 c1 f3 c1 f4 c1 f1 c2 f2 c2 f3 c2 f4 c2 1 1 22 bit level detail (4.096mhz bus configurtation) f2 c32 f1 c1 f2 c1 f1 c2 f2 c2 f2 c32 f1 c1 f2 c1 f1 c2 f2 c2 f3 c32 f4 c32 f1 c1 f2 c1 f3 c1 f4 c1 f1 c2 f2 c2 f3 c2 f4 c2 abcd abcd abcd rser rsig 33 f1 c1 f2 c1 f3 c1 f4 c1 f5 c1 f6 c1 f7 c1 f8 c1 f1 c2 f2 c2 f3 c2 f4 c2 f5 c2 f6c2 f7 c2 f8 c2 f5 c32 f6 c32 f7 c32 f8 c32 f1 c1 f2 c1 f3 c1 f4 c1 f5 c1 f6 c1 f7 c1 f8 c1 f1 c2 f2 c2 f3 c2 f4 c2 f5 c2 f6c2 f7 c2 f8 c2 f5 c32 f6 c32 f7 c32 f8 c32 framer #1, channel #1 downloaded from: http:///
ds2155 216 of 238 figure 35-16. receive ibo frame interleave mode timing note 1: 4.096mhz bus configuration. note 2: 8.192mhz bus configuration. note 3: 16.384mhz bus configuration. note 4: rsync is in the input mode (iocr1.4 = 0). rser lsb rsysclk rsync framer2, channel 32 msb lsb framer 1, channel 1 rsig framer2, channel 32 framer 1, channel 1 msb lsb framer1, channel 2 framer1, channel 2 4 rser rsync rsig rser rsig f3 f4 f1 f2 f3 f4 f1 f2 f3 f4 1 1 22 bit level detail (4.096mhz bus configurtation) f2 f1 f2 f1 f2 f2 f1 f2 f1 f2 f3 f4 f1 f2 f3 f4 f1 f2 f3 f4 abcd abcd abcd rser rsig 33 f1 f2 f3 f4 f5 f6 f7 f8 f1 f2 f3 f4 f5 f6 f7 f8 f5 f6 f7 f8 f1 f2 f3 f4 f5 f6 f7 f8 f1 f2 f3 f4 f5 f6 f7 f8 f5 f6 f7 f8 framer #1, channels 1 through 32 downloaded from: http:///
ds2155 217 of 238 figure 35-17. g.802 timing, e1 mode only note 1: rchblk or tchblk programmed to pulse high during time slots 1 through 15, 17 through 25, and bit 1 of time slot 26. figure 35-18. transmit-side timing note 1: tsync in frame mode (iocr1.2 = 0). note 2: tsync in multiframe mode (iocr1.2 = 1). note 3: tlink is programmed to source just the sa4 bit. note 4: this diagram assumes both the cas mf and the crc4 mf begin with the taf frame. note 5: tlink and tlclk are not synchronous with tssync. 12345678910111213141516171819202122232425262728293031 0 31 32 ts # rsync tsync rchclk tchclk rchblk tchblk channel 26 channel 25 lsb msb rclk / rsysclk tclk / tsysclk rser / tser rchclk / tchclk rchblk / tchblk 12 0 12345 678910 11 12 1 3 tssync frame# tsync tsync 13 14 15 16 12345 tlclk tlink 14 15 16 678910 3 2 downloaded from: http:///
ds2155 218 of 238 figure 35-19. transmit-side boundary timing (elastic store disabled) note 1: tsync is in the output mode (iocr1.1 = 1). note 2: tsync is in the input mode (iocr1.1 = 0). note 3: tchblk is programmed to block channel 2. note 4: tlink is programmed to source the sa4 bit. note 5: the signaling data at tsig during channel 1 is normally overwritten in the transmit formatter with the cas mf alignment nibble (0000). note 6: shown is a tnaf frame boundary. figure 35-20. transmit-side bounda ry timing, tsysclk = 1.544mhz (elastic store enabled) note 1: the f-bit position in the tser data is ignored. note 2: tchblk is programmed to block channel 24. lsb msb lsb msb channel 1 channel 2 channel 1 channel 2 abcd tclk tser tsync tsync tsig tchclk tchblk tlclk tlink 12 3 4 don't care si 1 a sa4 sa5 sa6 sa7 sa8 d don't care 4 lsb f msb lsb msb channel 1 channel 24 tsysclk tser tssync tchclk tchblk channel 23 1 2 downloaded from: http:///
ds2155 219 of 238 figure 35-21. transmit-side boundary timing, tsysclk = 2.048mhz (elastic store enabled) note 1: tchblk is programmed to block channel 31. lsb f lsb msb channel 1 channel 32 abcd ab tsysclk tser tssync tsig tchclk tchblk channel 31 a channel 31 channel 32 channel 1 1 4 2,3 cd downloaded from: http:///
ds2155 220 of 238 figure 35-22. transmit ibo channel interleave mode timing note 1: 4.096mhz bus configuration. note 2: 8.192mhz bus configuration. note 3: 16.384mhz bus configuration. note 4: tsync is in input mode. tser lsb tsysclk tsync framer2, channel 32 msb lsb framer 1, channel 1 tsig framer2, channel 32 framer 1, channel 1 msb lsb framer2, channel 1 framer2, channel 1 4 tser tssync trsig tser tsig f3 32 f4 32 f1 c1 f2 c1 f3 c1 f4 c1 f1 c2 f2 c2 f3 c2 f4 c2 11 2 2 bit level detail (4.096mhz bus configurtation) f2 c32 f1 c1 f2 c1 f1 c2 f2 c2 f2 c32 f1 c1 f2 c1 f1 c2 f2 c2 f3 c32 f4 c32 f1 c1 f2 c1 f3 c1 f4 c1 f1 c2 f2 c2 f3 c2 f4 c2 abcd abcd abcd tser tsig 3 3 f1 c1 f2 c1 f3 c1 f4 c1 f5 c1 f6 c1 f7 c1 f8 c1 f1 c2 f2 c2 f3 c2 f4 c2 f5 c2 f6c2 f7 c2 f8 c2 f5 c32 f6 c32 f7 c32 f8 c32 f1 c1 f2 c1 f3 c1 f4 c1 f5 c1 f6 c1 f7 c1 f8 c1 f1 c2 f2 c2 f3 c2 f4 c2 f5 c2 f6c2 f7 c2 f8 c2 f5 c32 f6 c32 f7 c32 f8 c32 framer #1, channel #1 downloaded from: http:///
ds2155 221 of 238 figure 35-23. transmit ibo frame interleave mode timing note 1: 4.096mhz bus configuration. note 2: 8.192mhz bus configuration. note 3: 16.384mhz bus configuration. note 4: tsync is in input mode. tser lsb tsysclk tsync framer2, channel 32 msb lsb framer 1, channel 1 tsig framer2, channel 32 framer 1, channel 1 msb lsb framer1, channel 2 framer1, channel 2 4 tser tssync tsig tser tsig f3 f4 f1 f2 f3 f4 f1 f2 f3 f4 11 2 2 bit level detail (4.096mhz bus configurtation) f2 f1 f2 f1 f2 f2 f1 f2 f1 f2 f3 f4 f1 f2 f3 f4 f1 f2 f3 f4 abcd abcd abcd tser tsig 3 3 f1 f2 f3 f4 f5 f6 f7 f8 f1 f2 f3 f4 f5 f6 f7 f8 f5 f6 f7 f8 f1 f2 f3 f4 f5 f6 f7 f8 f1 f2 f3 f4 f5 f6 f7 f8 f5 f6 f7 f8 framer #1, channels 1 through 32 downloaded from: http:///
ds2155 222 of 238 36. operating parameters absolute maxi mum ratings voltage range on any pin relative to ground -1.0v to +6.0v operating temperature range for ds2155l 0c to +70c operating temperature range for ds 2155ln -40c to +85c (note 1) storage temperature range -55c to +125c soldering temperature see ipc/jedec j-std-020 this is a stress rating only and functional operation of the device at these or any other conditi ons above those indicated in t he operation sections of this specification is not implied. exposure to absolute maximum rating co nditions for extended periods of time may affect reliability. note 1: specifications to -40 c are guaranteed by design and not production tested. thermal char acteristics parameter conditions min typ max ambient temperature (note 2) -40c +85 c junction temperature +125 c theta-ja ( ja ) in still air for 100-pin lqfp (note 3) +32 c/w theta-ja ( ja ) in still air for 10mm csbga (note 3) +40 c/w theta-ja ( ja ) vs. airflow forced air (meters per second) theta-ja ( ja ) 100-pin lqfp theta-ja ( ja ) 10mm csbga 0 +32 c/w 40 c/w 1 +27 c/w 34 c/w 2.5 +24 c/w 30 c/w recommended dc oper ating conditions (t a = 0 c to +70 c for ds2155l; t a = -40 c to +85 c for ds2155ln.) parameter symbol conditions min typ max units logic 1 v ih 2.0 5.5 v logic 0 v il -0.3 +0.8 v supply v dd (note 4) 3.135 3.3 3.465 v capacitance (t a = +25c) parameter symbol conditions min typ max units input capacitance c in 5 pf output capacitance c out 7 pf downloaded from: http:///
ds2155 223 of 238 dc characteristics ( v dd = 3.3v 5%, t a = 0 c to +70 c for ds2155l; v dd = 3.3v 5%, t a = -40 c to +85 c for ds2155ln.) parameter symbol conditions min typ max units supply current i dd (note 5) 75 ma input leakage i il (note 6) -1.0 +1.0 a output leakage i lo (note 7) 1.0 a output current (2.4v) i oh -1.0 ma output current (0.4v) i ol +4.0 ma note 2: the package is mounted on a four-layer jedec standard test board. note 3: theta-ja ( ja ) is the junction to ambient thermal resistance, when the package is mounted on a four-layer jedec standard test board. note 4: applies to rv dd , tv dd , and dv dd . note 5: tclk = tclki = rclki = tsysclk = rsysclk = mclk = 1.544mhz; outputs open-circuited. note 6: 0.0v < v in < v dd note 7: applied to int when tri-stated. downloaded from: http:///
ds2155 224 of 238 37. ac timing parameters and diagrams capacitive test loads are 40pf for bus signals, 20pf for all others. 37.1 multiplexed bus ac characteristics ac characteristics: multiplexe d parallel port (mux = 1) ( figure 37-1 , figure 37-2 , and figure 37-3 ) (v dd = 3.3v 5%, t a = 0 c to +70 c for ds2155l; v dd = 3.3v 5%, t a = -40 c to +85 c for ds2155ln.) parameter symbol conditions min typ max units cycle time t cyc 200 ns pulse width, ds low or rd high pw el 100 ns pulse width, ds high or rd low pw eh 100 ns input rise/fall times t r , t f 20 ns r/ w hold time t rwh 10 ns r/ w setup time before ds high t rws 50 ns cs setup time before ds, wr , or rd active t cs 20 ns cs hold time t ch 0 ns read data hold time t dhr 10 50 ns write data hold time t dhw 0 ns muxed address valid to as or ale fall t asl 15 ns muxed address hold time t ahl 10 ns delay time ds, wr , or rd to as or ale rise t asd 20 ns pulse width as or ale high pw ash 30 ns delay time, as or ale to ds, wr or rd t ased 10 ns output data delay time from ds or rd t ddr 20 80 ns data setup time t dsw 50 ns downloaded from: http:///
ds2155 225 of 238 figure 37-1. intel multiplexed bu s read timing (bts = 0/mux = 1) figure 37-2. intel multiplexed bu s write timing (bts = 0/mux = 1) ash pw t cyc t asd t asd pw pw eh el t t t t t t ahl ch cs asl ased cs* ad0-ad7 dhr t ddr ale rd* wr* ash pw t cyc t asd t asd pw pw eh el t t t t t t t ahl dsw dhw ch cs asl ased cs* ad0-ad7 rd* wr* ale downloaded from: http:///
ds2155 226 of 238 figure 37-3. motorola multiplexed bus timing (bts = 1/mux = 1) t asd ash pw t t asl ahl t cs t asl t t t dsw dhw t ch t t t ddr dhr rwh t ased pw eh t rws ahl pw el t cyc asds a d0-ad7 (write) a d0-ad7 (read) r/w* cs* downloaded from: http:///
ds2155 227 of 238 37.2 nonmultiplexed bus ac characteristics ac characteristics: nonmultiplex ed parallel po rt (mux = 0) ( figure 37-4 , figure 37-5 , figure 37-6 , and figure 37-7 ) (v dd = 3.3v 5%, t a = 0 c to +70 c for ds2155l; v dd = 3.3v 5%, t a = -40 c to +85 c; for ds2155ln.) parameter symbol conditions min typ max units setup time for a0 to a7, valid to cs active t1 0 ns setup time for cs active to either rd , wr , or ds active t2 0 ns delay time from either rd or ds active to data valid t3 75 ns hold time from either rd , wr , or ds inactive to cs inactive t4 0 ns hold time from cs inactive to data bus tri-state t5 5 20 ns wait time from either wr or ds active to latch data t6 75 ns data setup time to either wr or ds inactive t7 10 ns data hold time from either wr or ds inactive t8 10 ns address hold from either wr or ds inactive t9 10 ns downloaded from: http:///
ds2155 228 of 238 figure 37-4. intel nonmultiplexed bu s read timing (bts = 0/mux = 0) figure 37-5. intel nonmultiplexed bu s write timing (bts = 0/mux = 0) a ddress valid data valid a0 to a7 d0 to d7 w r c s r d 0ns (min) 0ns (min) 50ns (max) 0ns (min) 5ns (min) / 20ns (max) t1 t2 t3 t4 t5 a ddress valid a0 to a7 d0 to d7 r d c s w r 0ns (min) 0ns (min) 75ns (min) 0ns (min) 10ns (min) 10ns (min) t1 t2 t6 t4 t7 t8 downloaded from: http:///
ds2155 229 of 238 figure 37-6. motorola nonmultiplexed bus read timing (bts = 1/mux = 0) figure 37-7. motorola nonmultiplexed bus write timing (bts = 1/mux = 0) a ddress valid a0 to a7 d0 to d7 r/ w c s d s 0ns (min) 0ns (min) 75ns (min) 0ns (min) 10ns (min) 10ns (min) t1 t2 t6 t4 t7 t8 a ddress valid data valid a0 to a7 d0 to d7 r/ w c s d s 0ns (min) 0ns (min) 75ns (max) 0ns (min) 5ns (min) / 20ns (max) t1 t2 t3 t4 t5 downloaded from: http:///
ds2155 230 of 238 37.3 receive-side ac characteristics ac characteristics: receive side ( figure 37-8. , figure 37-9 , and figure 37-10 ) (v dd = 3.3v 5%, t a = 0c to +70c for ds2155l; v dd = 3.3v 5%, t a = -40c to +85c for ds2155ln.) parameter symbol conditions min typ max units 488 (e1) rclko period t lp 648 (t1) ns t lh (note 1) 200 0.5 t lp rclko pulse width t ll (note 1) 200 0.5 t lp ns t lh (note 2) 150 0.5 t lp rclko pulse width t ll (note 2) 150 0.5 t lp ns 488 (e1) rclki period t cp 648 (t1) ns t ch 20 0.5 t cp rclki pulse width t cl 20 0.5 t cp ns (note 3) 648 (note 4) 488 ns (note 5) 244 ns (note 6) 122 rsysclk period t sp (note 7) 61 t sh 20 0.5 t sp ns rsysclk pulse width t sl 20 0.5 t sp ns rsync setup to rsysclk falling t su 20 ns rsync pulse width t pw 50 ns rposi/rnegi setup to rclki falling t su 20 ns rposi/rnegi hold from rclki falling t hd 20 ns rsysclk, rclki rise and fall times t r , t f 22 ns delay rclko to rposo, rnego valid t dd 50 ns delay rclk to rser, rdata, rsig, rlink valid t d1 50 ns delay rclk to rchclk, rsync, rchblk, rfsync, rlclk t d2 50 ns delay rsysclk to rser, rsig valid t d3 22 ns delay rsysclk to rchclk, rchblk, rmsync, rsync t d4 22 ns note 1: jitter attenuator enabled in the receive path. note 2: jitter attenuator disabled or enabled in the transmit path. note 3: rsysclk = 1.544mhz note 4: rsysclk = 2.048mhz note 5: rsysclk = 4.096mhz note 6: rsysclk = 8.192mhz note 7: rsysclk = 16.384mhz downloaded from: http:///
ds2155 231 of 238 figure 37-8. receive-side timing note 1: rsync is in the output mode. note 2: shown is rlink/rlclk in the esf framing mode. note 3: no relationship between rchclk and rchblk and other signals is implied. note 4: rlclk only pulses high during sa bit locations as defined in the e1rcr2 register. t d1 1 t d2 rser / rdata / rsig rchclk rchblk rsync rlclk rlink (t1mode) t d1 rclk rfsync / rmsync 2 t d2 t d2 t d2 t d2 rlink (e1 mode) sa4 to sa8 bit position 4 1st frame bit downloaded from: http:///
ds2155 232 of 238 figure 37-9. receive-side timi ng, elastic store enabled note 1: rsync is in the output mode. note 2: rsync is in the input mode. note 3: f-bit when mstrreg.1 = 0, msb of ts0 when mstreg.1 = 1. figure 37-10. receive line interface timing f t t r t d3 t d4 t d4 t d4 t t su hd rser / rsig rchclk rchblk 1 rsync 2 rsync rsysclk sl t t sp sh t t d4 rmsync see note 3 t f t r rposi, rnegi rclki cl t t cp ch t t su t hd t dd rposo, rnego rclko ll t t lp lh t downloaded from: http:///
ds2155 233 of 238 37.4 backplane clock timing: ac characteristics ac characteristics: backplane clock synthesis ( figure 37-11 ) (v dd = 3.3v 5%, t a = 0c to +70c for ds2155l; v dd = 3.3v 5%, t a = -40c to +85c for ds2155ln.) parameter symbol conditions min typ max units delay rclk to bpclk t d1 10 ns figure 37-11 receive timing delay rclk to bpclk t d1 bpclk rclk note 1: if rclk is 1.544 mhz, bpclk will be asynchronous. downloaded from: http:///
ds2155 234 of 238 37.5 transmit ac characteristics ac characteristics: transmit side ( figure 37-12 , figure 37-13 , and figure 37-14 ) (v dd = 3.3v 5%, t a = -40c to +85c for ds2155l; v dd = 3.3v 5%, t a = 0c to +70c for ds2155ln) parameter symbol conditions min typ (e1) max units 488 (e1) tclk period t cp 648 (t1) ns t ch 20 0.5 t cp tclk pulse width t cl 20 0.5 t cp ns 488 (e1) tclki period t lp 648 (t1) ns t lh 20 0.5 t lp tclki pulse width t ll 20 0.5 t lp ns (note 8) 648 (note 9) 448 (note 10) 244 (note 11) 122 tsysclk period t sp (note 12) 61 ns 20 0.5 t sp tsysclk pulse width t sp 20 0.5 t sp ns tsync or tssync setup to tclk or tsysclk falling t su 20 ns tsync or tssync pulse width t pw 50 ns tser, tsig, tdata, tlink, tposi, tnegi setup to tclk, tsysclk, tclki falling t su 20 ns tser, tsig, tdata, tlink hold from tclk or tsysclk falling t hd 20 ns tposi, tnegi hold from tclki falling t hd 20 ns tclk, tclki or tsysclk rise and fall times t r , t f 25 ns delay tclko to tposo, tnego valid t dd 50 ns delay tclk to teso, ut-utdo valid t d1 50 ns delay tclk to tchblk, tchclk, tsync, tlclk t d2 50 ns delay tsysclk to tchclk, tchblk t d3 22 ns note 8: tsysclk = 1.544mhz note 9: tsysclk = 2.048mhz note 10: tsysclk = 4.096mhz note 11: tsysclk = 8.192mhz note 12: tsysclk = 16.384mhz downloaded from: http:///
ds2155 235 of 238 figure 37-12. transmit-side timing note 1: tsync is in the output mode (iocr1.1 = 1). note 2: tsync is in the input mode (iocr1.1 = 0). note 3: tser is sampled on the falling edge of tclk when the transmit-side elastic store is disabled. note 4: tchclk and tchblk are synchronous with tclk w hen the transmit-side elastic store is disabled. note 5: in e1 mode, tlink is only sampled during sa bit locations as defined in e1tcr2; no relationship between tlclk/tlink and tsync is implied. t f t r 1 tclk tser / tsig / tdata tchclk t t cl t ch cp tsync tsync tlink tlclk tchblk t d2 t d2 t d2 t t t t t t hd su d2 su hd d1 t hd 2 5 teso t su downloaded from: http:///
ds2155 236 of 238 figure 37-13. transmit-side timing, elastic store enabled note 1: tser is only sampled on the falling edge of tsysclk when the transmit-side elastic store is enabled. note 2: tchclk and tchblk are synchronous with tsyscl k when the transmit-side elastic store is enabled. figure 37-14. transmit line interface timing tclko tposo, tnego t dd t f t r tclki tposi, tnegi t t ll t lh lp t hd t su t f t r tsysclk tser tchclk t t sl t sh sp tssync tchblk t d3 t d3 t t t su hd su t hd downloaded from: http:///
ds2155 237 of 238 38. package information (the package drawing(s) in this data sheet may not reflect the most current specifications. the package number provided for each package is a link to the latest package outline information.) 38.1 100-pin lqfp ( 56-g5002-000 ) downloaded from: http:///
ds2155 238 of 238 maxim/dallas semiconductor cannot assume res ponsibility for use of any circuitry other than circuitry entirely embodied in a ma xim/dallas semiconductor product. no circuit patent licenses are implied. maxi m/dallas semiconductor reserves the right to change the circuitry and specifications without notice at any time. maxim integrated products, 120 san gabriel drive, sunnyvale, ca 94086 408-737-7600 ? 2007 maxim integrated products the maxim logo is a registered trademark of maxim integrated products, inc. the dallas logo is a registered trademark of dallas semiconductor. 38.2 100-ball csbga ( 56-g6008-001 ) downloaded from: http:///


▲Up To Search▲   

 
Price & Availability of DS2155GNC2

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X